refactor: payment component
This commit is contained in:
parent
df7ebc6699
commit
5ee81f2e5a
|
@ -1,12 +1,6 @@
|
||||||
<div>
|
<div>
|
||||||
<q-form @submit="checkAndSend" class="q-gutter-md">
|
<q-form @submit="checkAndSend" class="q-gutter-md">
|
||||||
<q-tabs v-model="paymentTab" no-caps class="bg-dark text-white shadow-2">
|
<q-card class="q-mt-lg">
|
||||||
<q-tab name="destination" label="Send To"></q-tab>
|
|
||||||
<q-tab name="coinControl" label="Coin Select"></q-tab>
|
|
||||||
</q-tabs>
|
|
||||||
<q-tab-panels v-model="paymentTab">
|
|
||||||
<q-tab-panel name="destination">
|
|
||||||
<q-card>
|
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<send-to
|
<send-to
|
||||||
:data.sync="sendToList"
|
:data.sync="sendToList"
|
||||||
|
@ -38,17 +32,12 @@
|
||||||
{{feeRate}} sats/vbyte</span
|
{{feeRate}} sats/vbyte</span
|
||||||
>
|
>
|
||||||
<span class="q-ml-lg">Fee:</span>
|
<span class="q-ml-lg">Fee:</span>
|
||||||
<span class="text-subtitle2 q-ml-md">
|
<span class="text-subtitle2 q-ml-md"> {{satBtc(feeValue)}} </span>
|
||||||
{{satBtc(feeValue)}}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div v-show="showCustomFee" class="row items-center no-wrap q-mt-md">
|
||||||
v-show="showCustomFee"
|
|
||||||
class="row items-center no-wrap q-mt-md"
|
|
||||||
>
|
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<q-separator class="q-mb-md"></q-separator>
|
<q-separator class="q-mb-md"></q-separator>
|
||||||
<fee-rate :fee-value="feeValue" :rate.sync="feeRate"></fee-rate>
|
<fee-rate :fee-value="feeValue" :rate.sync="feeRate"></fee-rate>
|
||||||
|
@ -72,9 +61,7 @@
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<span>Balance:</span>
|
<span>Balance:</span>
|
||||||
<span class="text-subtitle2 q-ml-md">
|
<span class="text-subtitle2 q-ml-md"> {{satBtc(balance)}} </span>
|
||||||
{{satBtc(balance)}}
|
|
||||||
</span>
|
|
||||||
<span class="q-ml-lg">Selected:</span>
|
<span class="q-ml-lg">Selected:</span>
|
||||||
<span class="text-subtitle2 q-ml-md">
|
<span class="text-subtitle2 q-ml-md">
|
||||||
{{satBtc(selectedAmount)}}
|
{{satBtc(selectedAmount)}}
|
||||||
|
@ -83,10 +70,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div v-show="showCoinSelect" class="row items-center no-wrap q-mt-md">
|
||||||
v-show="showCoinSelect"
|
|
||||||
class="row items-center no-wrap q-mt-md"
|
|
||||||
>
|
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<q-separator class="q-mb-md"></q-separator>
|
<q-separator class="q-mb-md"></q-separator>
|
||||||
<utxo-list
|
<utxo-list
|
||||||
|
@ -195,13 +179,5 @@
|
||||||
</q-badge>
|
</q-badge>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</q-tab-panel>
|
|
||||||
|
|
||||||
<q-tab-panel name="coinControl">
|
|
||||||
<q-card class="q-mb-lg">
|
|
||||||
<q-card-section> </q-card-section>
|
|
||||||
</q-card>
|
|
||||||
</q-tab-panel>
|
|
||||||
</q-tab-panels>
|
|
||||||
</q-form>
|
</q-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
>
|
>
|
||||||
<q-list>
|
<q-list>
|
||||||
<q-item v-if="!selectedPort" clickable v-close-popup>
|
<q-item v-if="!selectedPort" clickable v-close-popup>
|
||||||
<q-item-section >
|
<q-item-section>
|
||||||
<q-item-label>Configure</q-item-label>
|
<q-item-label>Configure</q-item-label>
|
||||||
<q-item-label caption
|
<q-item-label caption
|
||||||
>Set the Serial Port communication parameters</q-item-label
|
>Set the Serial Port communication parameters</q-item-label
|
||||||
|
|
|
@ -403,16 +403,17 @@
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
</q-tab-panels>
|
</q-tab-panels>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-card-section v-show="showPayment">
|
</q-card>
|
||||||
|
<div class="q-mt-lg">
|
||||||
<payment
|
<payment
|
||||||
|
v-show="showPayment"
|
||||||
:accounts="walletAccounts"
|
:accounts="walletAccounts"
|
||||||
:addresses="addresses"
|
:addresses="addresses"
|
||||||
:utxos="utxos.data"
|
:utxos="utxos.data"
|
||||||
:adminkey="g.user.wallets[0].adminkey"
|
:adminkey="g.user.wallets[0].adminkey"
|
||||||
></payment>
|
></payment>
|
||||||
<!-- todo: no more utxos.data -->
|
<!-- todo: no more utxos.data -->
|
||||||
</q-card-section>
|
</div>
|
||||||
</q-card>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user