mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-05 15:14:21 +01:00
Always allow to mine a block in cheat mode
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<button class="btn btn-secondary flex-shrink-0 px-3 w-100px" type="submit" :disabled="paying" id="FakePayment">Pay</button>
|
||||
</div>
|
||||
</form>
|
||||
<form id="mine-block" :action="`/i/${invoiceId}/mine-blocks`" method="post" v-on:submit.prevent="handleFormSubmit($event, 'mining')" v-if="displayMine">
|
||||
<form id="mine-block" :action="`/i/${invoiceId}/mine-blocks`" method="post" v-on:submit.prevent="handleFormSubmit($event, 'mining')">
|
||||
<label for="BlockCount" class="control-label form-label" text-translate="true">Mine to test processing and settlement</label>
|
||||
<div class="d-flex gap-2">
|
||||
<input name="PaymentMethodId" type="hidden" :value="paymentMethodId">
|
||||
@@ -66,7 +66,7 @@
|
||||
},
|
||||
computed: {
|
||||
display() {
|
||||
return this.successMessage || this.errorMessage || this.displayPayment || this.displayMine || this.displayExpire;
|
||||
return this.successMessage || this.errorMessage || this.displayPayment || this.displayExpire;
|
||||
},
|
||||
displayPayment () {
|
||||
return !this.isSettled && !this.isProcessing;
|
||||
@@ -74,9 +74,6 @@
|
||||
displayExpire () {
|
||||
return !this.isSettled && !this.isProcessing;
|
||||
},
|
||||
displayMine () {
|
||||
return this.paymentMethodId === 'BTC-CHAIN';
|
||||
},
|
||||
isSats () {
|
||||
return this.cryptoCode === 'sats';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user