fix: q-notify behaviour
This commit is contained in:
parent
93df7bb2c0
commit
14cea467a8
2 changed files with 14 additions and 8 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue