fix: q-notify behaviour

This commit is contained in:
Tiago Vasconcelos 2023-03-17 10:25:46 +00:00
parent 93df7bb2c0
commit 14cea467a8
2 changed files with 14 additions and 8 deletions

View file

@ -235,12 +235,7 @@
@click="copyText(qrCodeDialog.data.payment_request)"
>Copy invoice</q-btn
>
<q-btn
@click="closeQrCodeDialog"
v-close-popup
flat
color="grey"
class="q-ml-auto"
<q-btn @click="closeQrCodeDialog" flat color="grey" class="q-ml-auto"
>Close</q-btn
>
</div>

View file

@ -190,9 +190,20 @@ async function customerStall(path) {
}
}
},
openQrCodeDialog() {
this.qrCodeDialog = {
data: {
payment_request: null
},
dismissMsg: null,
show: false
}
},
closeQrCodeDialog() {
this.qrCodeDialog.show = false
this.qrCodeDialog.dismissMsg = null
setTimeout(() => {
this.qrCodeDialog.dismissMsg()
}, 1000)
},
async placeOrder() {
this.loading = true
@ -281,7 +292,7 @@ async function customerStall(path) {
}
this.loading = false
this.resetCart()
this.qrCodeDialog.show = true
this.openQrCodeDialog()
this.listenMessages()
},
async listenMessages() {