chore: code clean-up
This commit is contained in:
parent
74328bfeb5
commit
1bd74aba4d
6 changed files with 4 additions and 14 deletions
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
<div class="row items-center no-wrap q-mb-md">
|
||||
<div class="col-2 q-pr-lg">Fee:</div>
|
||||
<div class="col-3 q-pr-lg">{{totalfee}} sats</div>
|
||||
<div class="col-3 q-pr-lg">{{feeValue}} sats</div>
|
||||
<div class="col-7">
|
||||
<q-btn
|
||||
outline
|
||||
|
|
|
|||
|
|
@ -4,20 +4,14 @@ async function feeRate(path) {
|
|||
name: 'fee-rate',
|
||||
template,
|
||||
|
||||
props: ['rate', 'totalfee', 'sats_denominated'],
|
||||
watch: {
|
||||
immediate: true,
|
||||
totalfee: function (newVal, oldVal) {
|
||||
console.log('### ', newVal, oldVal)
|
||||
}
|
||||
},
|
||||
props: ['rate', 'fee-value', 'sats_denominated'],
|
||||
|
||||
computed: {
|
||||
feeRate: {
|
||||
get: function () {
|
||||
return this['rate']
|
||||
},
|
||||
set: function (value) {
|
||||
console.log('### computed update rate')
|
||||
this.$emit('update:rate', +value)
|
||||
}
|
||||
}
|
||||
|
|
@ -60,7 +54,6 @@ async function feeRate(path) {
|
|||
},
|
||||
|
||||
created: async function () {
|
||||
console.log('### created fees ')
|
||||
await this.refreshRecommendedFees()
|
||||
this.feeRate = this.recommededFees.halfHourFee
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@
|
|||
>
|
||||
<div class="col-12">
|
||||
<q-separator class="q-mb-md"></q-separator>
|
||||
<fee-rate :totalfee="feeValue" :rate.sync="feeRate"></fee-rate>
|
||||
<fee-rate :fee-value="feeValue" :rate.sync="feeRate"></fee-rate>
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
|
|
|
|||
|
|
@ -133,7 +133,6 @@ async function payment(path) {
|
|||
}
|
||||
},
|
||||
selectChangeAddress: function (account) {
|
||||
console.log('### selectChangeAddress', account)
|
||||
if (!account) this.changeAddress = ''
|
||||
this.changeAddress =
|
||||
this.addresses.find(
|
||||
|
|
|
|||
|
|
@ -108,7 +108,6 @@ async function utxoList(path) {
|
|||
this.utxos.forEach(u => (u.selected = true))
|
||||
return
|
||||
}
|
||||
console.log('### applyUtxoSelectionMode')
|
||||
|
||||
this.utxos.forEach(u => (u.selected = false))
|
||||
const isManual = mode === 'Manual'
|
||||
|
|
|
|||
|
|
@ -685,7 +685,6 @@ const watchOnly = async () => {
|
|||
this.utxos.total = 0
|
||||
this.history = []
|
||||
const addresses = this.addresses.filter(a => a.hasActivity)
|
||||
console.log('### scanAddressWithAmount', this.addresses, addresses)
|
||||
await this.updateUtxosForAddresses(addresses)
|
||||
},
|
||||
scanAddress: async function (addressData) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue