Skip to content

Commit

Permalink
Merge pull request #1039 from ITfoxtec/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
Revsgaard authored Nov 19, 2024
2 parents 7ef4290 + b4a3cae commit c454601
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/FoxIDs.Control/FoxIDs.Control.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.11.20</Version>
<Version>1.11.21</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.ControlClient/FoxIDs.ControlClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.11.20</Version>
<Version>1.11.21</Version>
<RootNamespace>FoxIDs.Client</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
23 changes: 15 additions & 8 deletions src/FoxIDs.ControlClient/Pages/MasterTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,25 @@ private async Task OnOpenPaymentMethodAsync()

private async Task ShowPaymentModalAsync()
{
(var isValid, var error) = await tenantSettingsForm.Submit();
if(isValid)
try
{
changePaymentError = null;
changePaymentWorking = false;
changePaymentModal.Show();
(var isValid, var error) = await tenantSettingsForm.Submit();
if (isValid)
{
changePaymentError = null;
changePaymentWorking = false;
changePaymentModal.Show();

await LoadMollieAsync();
await LoadMollieAsync();
}
else if (!error.IsNullOrWhiteSpace())
{
ToastService.ShowError(error);
}
}
else if(!error.IsNullOrWhiteSpace())
catch (TokenUnavailableException)
{
ToastService.ShowError(error);
await (OpenidConnectPkce as TenantOpenidConnectPkce).TenantLoginAsync();
}
}

Expand Down
6 changes: 6 additions & 0 deletions src/FoxIDs.ControlClient/Pages/MasterTenant.razor
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@
<button type="button" class="btn btn-primary @(changePaymentWorking ? "disabled" : "")" @onclick="SubmitMollieAsync">Register payment</button>
<button type="button" class="btn btn-secondary @(changePaymentWorking ? "disabled" : "")" @onclick="HidePaymentModalAsync">Cancel</button>
</div>
<div class="footer-container text-center">
<div class="footer-content">
<a href="https://www.mollie.com/" target="_blank"><i class="bi bi-lock"></i>Payment secured and provided by <strong>mollie</strong></a>
</div>
</div>

</form>
</div>
</Modal>
Expand Down
3 changes: 3 additions & 0 deletions src/FoxIDs.ControlClient/wwwroot/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ h4 {
line-height: normal;
letter-spacing: normal;
}
.footer-container a {
color: #666;
}

.footer-content {
padding-left: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.ControlShared/FoxIDs.ControlShared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.11.20</Version>
<Version>1.11.21</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.Shared/FoxIDs.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.11.20</Version>
<Version>1.11.21</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.SharedBase/FoxIDs.SharedBase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.11.20</Version>
<Version>1.11.21</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs/FoxIDs.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>1.11.20</Version>
<Version>1.11.21</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down

0 comments on commit c454601

Please sign in to comment.