mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 14:04:12 +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; }
|
public bool Enabled { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Integration Mode")]
|
[Display(Name = "Integration Mode")]
|
||||||
public string Mode { get; set; } = "popup";
|
public string Mode { get; set; } = "inline";
|
||||||
|
|
||||||
public List<SelectListItem> Modes { get; } = new List<SelectListItem>
|
public List<SelectListItem> Modes { get; } = new List<SelectListItem>
|
||||||
{
|
{
|
||||||
|
|
|
@ -299,9 +299,16 @@
|
||||||
:autoload="selectedThirdPartyProcessor === 'coinswitch'"
|
:autoload="selectedThirdPartyProcessor === 'coinswitch'"
|
||||||
:to-currency-address="srvModel.btcAddress">
|
:to-currency-address="srvModel.btcAddress">
|
||||||
<div>
|
<div>
|
||||||
<a v-on:click="openDialog($event)" :href="url" class="action-button" v-show="url && !opened">
|
<a v-on:click="openDialog($event)" :href="url" class="action-button" v-show="url && !opened">
|
||||||
{{$t("Pay with CoinSwitch")}}
|
{{$t("Pay with CoinSwitch")}}
|
||||||
</a>
|
</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
|
<iframe
|
||||||
v-if="showInlineIFrame"
|
v-if="showInlineIFrame"
|
||||||
|
@ -342,6 +349,12 @@
|
||||||
<a v-on:click="openDialog($event)" :href="url" class="action-button" v-show="url">
|
<a v-on:click="openDialog($event)" :href="url" class="action-button" v-show="url">
|
||||||
{{$t("Pay with Changelly")}}
|
{{$t("Pay with Changelly")}}
|
||||||
</a>
|
</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')">
|
<button class="retry-button" v-if="calculateError" v-on:click="retry('calculateAmount')">
|
||||||
{{$t("ConversionTab_CalculateAmount_Error")}}
|
{{$t("ConversionTab_CalculateAmount_Error")}}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -11504,3 +11504,15 @@ low-fee-timeline {
|
||||||
#prettydropdown-DefaultLang ul li{
|
#prettydropdown-DefaultLang ul li{
|
||||||
width:100% !important;
|
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