mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
* Separate coinswitch as a system plugin * Decouple Coinswitch from Checkout UI * remove dummy csproj * Remove CoinSwitchTests.cs per @NicolasDorier feedback Co-authored-by: rockstardev <rockstardev@users.noreply.github.com>
12 lines
478 B
Text
12 lines
478 B
Text
@using BTCPayServer.Plugins.CoinSwitch
|
|
@inject CoinSwitchService CoinSwitchService
|
|
@{
|
|
var invoiceId = this.Context.GetRouteValue("invoiceId")?.ToString();
|
|
var settings = await CoinSwitchService.GetCoinSwitchForInvoice(invoiceId);
|
|
}
|
|
@if (settings?.IsConfigured() is true)
|
|
{
|
|
<div class="payment-tabs__tab" id="altcoins-tab" v-on:click="switchTab('altcoins')" v-bind:class="{ 'active': currentTab == 'altcoins'}">
|
|
<span>{{$t("Conversion")}}</span>
|
|
</div>
|
|
}
|