chore: code clean-up

This commit is contained in:
Vlad Stan 2022-07-26 14:29:00 +03:00
parent 74328bfeb5
commit 1bd74aba4d
6 changed files with 4 additions and 14 deletions

View file

@ -44,7 +44,7 @@
<div class="row items-center no-wrap q-mb-md"> <div class="row items-center no-wrap q-mb-md">
<div class="col-2 q-pr-lg">Fee:</div> <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"> <div class="col-7">
<q-btn <q-btn
outline outline

View file

@ -4,20 +4,14 @@ async function feeRate(path) {
name: 'fee-rate', name: 'fee-rate',
template, template,
props: ['rate', 'totalfee', 'sats_denominated'], props: ['rate', 'fee-value', 'sats_denominated'],
watch: {
immediate: true,
totalfee: function (newVal, oldVal) {
console.log('### ', newVal, oldVal)
}
},
computed: { computed: {
feeRate: { feeRate: {
get: function () { get: function () {
return this['rate'] return this['rate']
}, },
set: function (value) { set: function (value) {
console.log('### computed update rate')
this.$emit('update:rate', +value) this.$emit('update:rate', +value)
} }
} }
@ -60,7 +54,6 @@ async function feeRate(path) {
}, },
created: async function () { created: async function () {
console.log('### created fees ')
await this.refreshRecommendedFees() await this.refreshRecommendedFees()
this.feeRate = this.recommededFees.halfHourFee this.feeRate = this.recommededFees.halfHourFee
} }

View file

@ -113,7 +113,7 @@
> >
<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 :totalfee="feeValue" :rate.sync="feeRate"></fee-rate> <fee-rate :fee-value="feeValue" :rate.sync="feeRate"></fee-rate>
</div> </div>
</div> </div>
</q-card-section> </q-card-section>

View file

@ -133,7 +133,6 @@ async function payment(path) {
} }
}, },
selectChangeAddress: function (account) { selectChangeAddress: function (account) {
console.log('### selectChangeAddress', account)
if (!account) this.changeAddress = '' if (!account) this.changeAddress = ''
this.changeAddress = this.changeAddress =
this.addresses.find( this.addresses.find(

View file

@ -108,7 +108,6 @@ async function utxoList(path) {
this.utxos.forEach(u => (u.selected = true)) this.utxos.forEach(u => (u.selected = true))
return return
} }
console.log('### applyUtxoSelectionMode')
this.utxos.forEach(u => (u.selected = false)) this.utxos.forEach(u => (u.selected = false))
const isManual = mode === 'Manual' const isManual = mode === 'Manual'

View file

@ -685,7 +685,6 @@ const watchOnly = async () => {
this.utxos.total = 0 this.utxos.total = 0
this.history = [] this.history = []
const addresses = this.addresses.filter(a => a.hasActivity) const addresses = this.addresses.filter(a => a.hasActivity)
console.log('### scanAddressWithAmount', this.addresses, addresses)
await this.updateUtxosForAddresses(addresses) await this.updateUtxosForAddresses(addresses)
}, },
scanAddress: async function (addressData) { scanAddress: async function (addressData) {