Pay Button Alert: Add missing alert-link classes (#3397)

* Pay Button Alert: Add missing alert-link classes

* Update alert link styles
This commit is contained in:
d11n
2022-02-02 04:37:22 +01:00
committed by GitHub
parent ff9a1a1f55
commit bcb692caf0
3 changed files with 7 additions and 3 deletions

View File

@@ -139,7 +139,7 @@
</button>
<p><strong>Warning:</strong> This feature should not be activated on a BTCPay Server store processing commercial transactions.</p>
<p>By activating this feature, a malicious user can trick you into thinking an order has been processed by creating a new invoice, reusing the same Order Id of another valid order but different amount or currency.</p>
<p>If this store process commercial transactions, we advise you to <a asp-controller="UIUserStores" asp-action="CreateStore">create a separate store</a> before using the payment button.</p>
<p>If this store process commercial transactions, we advise you to <a asp-controller="UIUserStores" asp-action="CreateStore" class="alert-link">create a separate store</a> before using the payment button.</p>
<form asp-action="DisableAnyoneCanCreateInvoice" asp-route-storeId="@Context.GetRouteValue("storeId")" method="post">
<button name="command" id="disable-pay-button" type="submit" class="btn btn-danger mt-0" value="Save">Disable payment button</button>
</form>

View File

@@ -13,7 +13,7 @@
</button>
<p><strong>Warning:</strong> This feature should not be activated on a BTCPay Server store processing commercial transactions.</p>
<p>By activating this feature, a malicious user can trick you into thinking an order has been processed by creating a new invoice, reusing the same Order Id of another valid order but different amount or currency.</p>
<p class="mb-0">If this store process commercial transactions, we advise you to <a asp-controller="UIUserStores" asp-action="CreateStore">create a separate store</a> before using the payment button.</p>
<p class="mb-0">If this store process commercial transactions, we advise you to <a asp-controller="UIUserStores" asp-action="CreateStore" class="alert-link">create a separate store</a> before using the payment button.</p>
</div>
<p>
To start using Pay Button, you need to enable this feature explicitly.

View File

@@ -4952,7 +4952,7 @@ fieldset:disabled .btn {
}
.alert-link {
font-weight: 700;
font-weight: var(--btcpay-font-weight-normal);
}
.alert-dismissible {
@@ -10735,6 +10735,10 @@ ul:not([class]) li {
background: none;
}
.alert-link {
text-decoration: underline;
}
.alert-dismissible .btn-close {
color: inherit;
padding: 1.25rem;