Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions BTCPayServer.Plugins.Branta/Views/UIBranta/EditBranta.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,7 @@

<partial name="_StatusMessage" />

@if (!Model.Settings.BrantaEnabled)
{
<div class="alert alert-warning mb-4" role="alert">
<span><strong>Branta is not enabled.</strong> Enable Branta to use features in this workspace.</span>
</div>
}
else if (string.IsNullOrEmpty(Model.Settings.StagingEnabled ? Model.Settings.StagingApiKey : Model.Settings.ProductionApiKey))
@if (string.IsNullOrEmpty(Model.Settings.StagingEnabled ? Model.Settings.StagingApiKey : Model.Settings.ProductionApiKey))
{
<div class="alert alert-warning mb-4" role="alert">
<span>
Expand All @@ -95,12 +89,6 @@ else if (string.IsNullOrEmpty(Model.Settings.StagingEnabled ? Model.Settings.Sta
</span>
</div>
}
else
{
<div class="alert alert-success mb-4" role="alert">
<span><strong>Branta is enabled!</strong> You can now create invoices and verify with Branta on the invoice checkout page.</span>
</div>
}

@if (Model.Settings.StagingEnabled)
{
Expand All @@ -115,6 +103,13 @@ else
<div class="form-group">
<label asp-for="Settings.BrantaEnabled" class="form-label" style="padding-right: 10px;"></label>
<input asp-for="Settings.BrantaEnabled" type="checkbox" class="btcpay-toggle" />
@if (!Model.Settings.BrantaEnabled)
{
<span class="text-warning">
<vc:icon symbol="warning" />
<span>Branta must be enabled to verify payments.</span>
</span>
}
<p class="text-secondary mt-2">By using Branta, you agree to our <a href="https://branta.pro/business_terms" target="_blank">Terms</a></p>
</div>

Expand Down