From e5644ec4f6fb740e84d711f81adfb6c7ca9b0dd8 Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Mon, 5 Sep 2022 11:47:27 +0100 Subject: [PATCH 1/5] show a dismissable notification after payment succeed --- .../extensions/tpos/templates/tpos/tpos.html | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lnbits/extensions/tpos/templates/tpos/tpos.html b/lnbits/extensions/tpos/templates/tpos/tpos.html index 98334e55..40da0068 100644 --- a/lnbits/extensions/tpos/templates/tpos/tpos.html +++ b/lnbits/extensions/tpos/templates/tpos/tpos.html @@ -253,7 +253,7 @@ name="check" transition-show="fade" class="text-light-green" - style="font-size: 40em" + style="font-size: min(90vw, 40em)" > @@ -413,9 +413,19 @@ dialog.show = false self.complete.show = true - setTimeout(function () { - self.complete.show = false - }, 5000) + self.$q.notify({ + type: 'positive', + message: 'Sats received, thanks!', + icon: 'thumb_up', + timeout: 0, + actions: [ + { + label: 'Dismiss', + color: 'white', + handler: () => (self.complete.show = false) + } + ] + }) } }) }, 3000) From ddc3ec7e2f52a75bd674f7aa1635b2bb8795674e Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Mon, 5 Sep 2022 11:55:24 +0100 Subject: [PATCH 2/5] add a tooltip and label for adding tip options --- lnbits/extensions/tpos/templates/tpos/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/tpos/templates/tpos/index.html b/lnbits/extensions/tpos/templates/tpos/index.html index edbb2aa8..3c4fa24f 100644 --- a/lnbits/extensions/tpos/templates/tpos/index.html +++ b/lnbits/extensions/tpos/templates/tpos/index.html @@ -138,8 +138,9 @@ hide-dropdown-icon input-debounce="0" new-value-mode="add-unique" - label="Tip % Options" - > + label="Tip % Options (hit enter to add values)" + >Hit enter to add values
Date: Wed, 7 Sep 2022 16:39:08 +0100 Subject: [PATCH 3/5] display NFC button on supported and fix null tip options --- lnbits/extensions/tpos/templates/tpos/tpos.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lnbits/extensions/tpos/templates/tpos/tpos.html b/lnbits/extensions/tpos/templates/tpos/tpos.html index 40da0068..bcd312e3 100644 --- a/lnbits/extensions/tpos/templates/tpos/tpos.html +++ b/lnbits/extensions/tpos/templates/tpos/tpos.html @@ -175,6 +175,7 @@ {% endraw %} From d1eb0b0c4d1552b62089fbb1941934c4a717ae94 Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Wed, 7 Sep 2022 16:43:47 +0100 Subject: [PATCH 4/5] rollback on removing NFC button --- lnbits/extensions/tpos/templates/tpos/tpos.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/lnbits/extensions/tpos/templates/tpos/tpos.html b/lnbits/extensions/tpos/templates/tpos/tpos.html index bcd312e3..f88a8f7a 100644 --- a/lnbits/extensions/tpos/templates/tpos/tpos.html +++ b/lnbits/extensions/tpos/templates/tpos/tpos.html @@ -175,7 +175,6 @@ {% endraw %} From fad040edf19513a1453f25ebe9bc752fe5f90e83 Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Mon, 12 Sep 2022 08:49:12 +0100 Subject: [PATCH 5/5] remove toast - click checkmark to dismiss --- lnbits/extensions/tpos/templates/tpos/tpos.html | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lnbits/extensions/tpos/templates/tpos/tpos.html b/lnbits/extensions/tpos/templates/tpos/tpos.html index f88a8f7a..ad04b3be 100644 --- a/lnbits/extensions/tpos/templates/tpos/tpos.html +++ b/lnbits/extensions/tpos/templates/tpos/tpos.html @@ -414,19 +414,6 @@ dialog.show = false self.complete.show = true - self.$q.notify({ - type: 'positive', - message: 'Sats received, thanks!', - icon: 'thumb_up', - timeout: 0, - actions: [ - { - label: 'Dismiss', - color: 'white', - handler: () => (self.complete.show = false) - } - ] - }) } }) }, 3000)