update plugins

This commit is contained in:
Kukks
2024-11-01 09:22:16 +01:00
parent d6255c20e6
commit fdb2f39cdb
7 changed files with 25 additions and 24 deletions

View File

@@ -9,7 +9,7 @@
<PropertyGroup> <PropertyGroup>
<Product>FixedFloat</Product> <Product>FixedFloat</Product>
<Description>Allows you to embed a FixedFloat conversion screen to allow customers to pay with altcoins.</Description> <Description>Allows you to embed a FixedFloat conversion screen to allow customers to pay with altcoins.</Description>
<Version>1.1.9</Version> <Version>1.1.10</Version>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup> </PropertyGroup>
<!-- Plugin development properties --> <!-- Plugin development properties -->

View File

@@ -87,7 +87,7 @@
}, },
explicitQuery (){ explicitQuery (){
const isExplicit = !!this.explicitId; const isExplicit = !!this.explicitId;
const explicitFrom = isExplicit ? this.explicitId: null; const explicitFrom = isExplicit ? this.explicitId.replace('ff_', ''): null;
return isExplicit? `&from=${explicitFrom}&lockSend=true` : ''; return isExplicit? `&from=${explicitFrom}&lockSend=true` : '';
}, },
amountQuery () { amountQuery () {

View File

@@ -8,25 +8,27 @@
if (settings?.Enabled is true) if (settings?.Enabled is true)
{ {
if (settings.ExplicitMethods?.Any() is true)
<div class="btcpay-pills d-flex flex-wrap align-items-center justify-content-center gap-2 pb-2">
@if (settings.ExplicitMethods?.Any() is true)
{ {
foreach (var explicitMethod in settings.ExplicitMethods) foreach (var explicitMethod in settings.ExplicitMethods)
{ {
if(FixedFloatSettings.AllowedSendingOptions.TryGetValue(explicitMethod, out var explicitMethodValue)) if (FixedFloatSettings.AllowedSendingOptions.TryGetValue(explicitMethod, out var explicitMethodValue))
{ {
<a href="#@explicitMethod" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@explicitMethod' && window.ffExplicitId === '@explicitMethod'}" v-on:click.prevent="()=>{ window.ffExplicitId = '@explicitMethod'; changePaymentMethod('@explicitMethod'); }"> <a href="#ff_@explicitMethod" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@id' && window.ffExplicitId === 'ff_@explicitMethod'}" v-on:click.prevent="()=>{ window.ffExplicitId = 'ff_@explicitMethod'; changePaymentMethod('@id'); }">
@explicitMethodValue @explicitMethodValue
</a> </a>
} }
} }
} }
if (!settings.OnlyShowExplicitMethods || settings.ExplicitMethods?.Any() is not true) @if (!settings.OnlyShowExplicitMethods || settings.ExplicitMethods?.Any() is not true)
{ {
<a href="#@id" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@id' && !window.ffExplicitId }" v-on:click.prevent="()=>{ window.ffExplicitId = null; changePaymentMethod('@id'); }"> <a href="#@id" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@id' && !window.ffExplicitId }" v-on:click.prevent="()=>{ window.ffExplicitId = null; changePaymentMethod('@id'); }">
@id @id
</a> </a>
} }
</div>
} }
} }

View File

@@ -9,7 +9,7 @@
<PropertyGroup> <PropertyGroup>
<Product>SideShift</Product> <Product>SideShift</Product>
<Description>Allows you to embed a SideShift conversion screen to allow customers to pay with altcoins.</Description> <Description>Allows you to embed a SideShift conversion screen to allow customers to pay with altcoins.</Description>
<Version>1.1.15</Version> <Version>1.1.16</Version>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup> </PropertyGroup>
<!-- Plugin development properties --> <!-- Plugin development properties -->

View File

@@ -25,7 +25,7 @@
<div class="payment-box"> <div class="payment-box">
<p v-html="content"></p> <p v-html="content"></p>
<p v-if="!settleMethodId" class="text-danger">Lightning is not supported via Sideshift. Select another payment method first, then come back.</p> <p v-if="!settleMethodId" class="text-danger">Lightning is not supported via Sideshift. Select another payment method first, then come back.</p>
<button v-if="settleMethodId" type="button" v-on:click="openDialog" class="btn btn-primary rounded-pill w-100">{{$t("Pay with SideShift", {crryptoCode: settleMethodId})}}</button> <button v-if="settleMethodId" type="button" v-on:click="openDialog" class="btn btn-primary rounded-pill w-100">{{$t("Pay with SideShift", {cryptoCode: settleMethodId})}}</button>
</div> </div>
</template> </template>
<script> <script>

View File

@@ -18,7 +18,7 @@
var coinInfo = coins.FirstOrDefault(c => c.CryptoCode == coin && c.Network == network); var coinInfo = coins.FirstOrDefault(c => c.CryptoCode == coin && c.Network == network);
if(coinInfo is null) if(coinInfo is null)
continue; continue;
<a href="#@id" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@id' && window.ssExplicitId === '@coinInfo.Id'}" v-on:click.prevent="()=>{ window.ssExplicitId = '@coinInfo.Id'; changePaymentMethod('@id'); }"> <a href="#ss_@coinInfo.Id" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@id' && window.ssExplicitId === '@coinInfo.Id'}" v-on:click.prevent="()=>{ window.ssExplicitId = '@coinInfo.Id'; changePaymentMethod('@id'); }">
@coinInfo.DisplayName @(coinInfo.DisplayName.Equals(coinInfo.Network, StringComparison.InvariantCultureIgnoreCase)? string.Empty: $"({coinInfo.Network})") @coinInfo.DisplayName @(coinInfo.DisplayName.Equals(coinInfo.Network, StringComparison.InvariantCultureIgnoreCase)? string.Empty: $"({coinInfo.Network})")
</a> </a>
} }

View File

@@ -58,7 +58,6 @@
<label asp-for="OnlyShowExplicitMethods" class="form-label mb-0 me-1">Only show explicit methods</label> <label asp-for="OnlyShowExplicitMethods" class="form-label mb-0 me-1">Only show explicit methods</label>
</div> </div>
</div> </div>
<button name="command" type="submit" value="save" class="btn btn-primary">Submit</button>
</div> </div>
</div> </div>