mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
fix coin switch issues
This commit is contained in:
parent
def8d1e0cb
commit
8b686f0b12
3 changed files with 29 additions and 4 deletions
|
@ -11,7 +11,7 @@ namespace BTCPayServer.Models.StoreViewModels
|
|||
public bool Enabled { get; set; }
|
||||
|
||||
[Display(Name = "Integration Mode")]
|
||||
public string Mode { get; set; } = "popup";
|
||||
public string Mode { get; set; } = "inline";
|
||||
|
||||
public List<SelectListItem> Modes { get; } = new List<SelectListItem>
|
||||
{
|
||||
|
|
|
@ -299,9 +299,16 @@
|
|||
:autoload="selectedThirdPartyProcessor === 'coinswitch'"
|
||||
:to-currency-address="srvModel.btcAddress">
|
||||
<div>
|
||||
<a v-on:click="openDialog($event)" :href="url" class="action-button" v-show="url && !opened">
|
||||
{{$t("Pay with CoinSwitch")}}
|
||||
</a>
|
||||
<a v-on:click="openDialog($event)" :href="url" class="action-button" v-show="url && !opened">
|
||||
{{$t("Pay with CoinSwitch")}}
|
||||
</a>
|
||||
|
||||
@if (Model.ChangellyEnabled)
|
||||
{
|
||||
<button v-show="!opened" v-on:click="$parent.selectedThirdPartyProcessor = 'changelly'" class="btn-link mt-2">
|
||||
{{$t("Pay with Changelly")}}
|
||||
</button>
|
||||
}
|
||||
|
||||
<iframe
|
||||
v-if="showInlineIFrame"
|
||||
|
@ -342,6 +349,12 @@
|
|||
<a v-on:click="openDialog($event)" :href="url" class="action-button" v-show="url">
|
||||
{{$t("Pay with Changelly")}}
|
||||
</a>
|
||||
@if (Model.CoinSwitchEnabled)
|
||||
{
|
||||
<button v-on:click="$parent.selectedThirdPartyProcessor = 'coinswitch'" class="btn-link mt-2">
|
||||
{{$t("Pay with CoinSwitch")}}
|
||||
</button>
|
||||
}
|
||||
<button class="retry-button" v-if="calculateError" v-on:click="retry('calculateAmount')">
|
||||
{{$t("ConversionTab_CalculateAmount_Error")}}
|
||||
</button>
|
||||
|
|
|
@ -11504,3 +11504,15 @@ low-fee-timeline {
|
|||
#prettydropdown-DefaultLang ul li{
|
||||
width:100% !important;
|
||||
}
|
||||
|
||||
[v-cloak] > * { display:none }
|
||||
[v-cloak]::before { content: "loading…" }
|
||||
|
||||
|
||||
.btn-link {
|
||||
color: #329F80;
|
||||
}
|
||||
|
||||
.btn-link:hover {
|
||||
color: #24725B;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue