diff --git a/static/components/customer-stall/customer-stall.html b/static/components/customer-stall/customer-stall.html index ea37b72..53995ba 100644 --- a/static/components/customer-stall/customer-stall.html +++ b/static/components/customer-stall/customer-stall.html @@ -235,12 +235,7 @@ @click="copyText(qrCodeDialog.data.payment_request)" >Copy invoice - Close diff --git a/static/components/customer-stall/customer-stall.js b/static/components/customer-stall/customer-stall.js index 7fb51c6..0b0bddb 100644 --- a/static/components/customer-stall/customer-stall.js +++ b/static/components/customer-stall/customer-stall.js @@ -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() {