From 610814f0d0135082b6877102cb28544499d71e66 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Sun, 27 Nov 2022 16:50:31 +0000 Subject: [PATCH] add onboarding tutorial --- .../templates/diagonalley/index.html | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/lnbits/extensions/diagonalley/templates/diagonalley/index.html b/lnbits/extensions/diagonalley/templates/diagonalley/index.html index 0e257d12..43efe281 100644 --- a/lnbits/extensions/diagonalley/templates/diagonalley/index.html +++ b/lnbits/extensions/diagonalley/templates/diagonalley/index.html @@ -1027,6 +1027,52 @@ --> + + +
How to use Diagon Alley
+ + + Create Shipping Zones you're willing to ship to. You can define + different values for different zones. + + + + + + Create a Stall and provide private and public keys to use for + communication. If you don't have one, LNbits will create a key pair + for you. It will be saved and can be used on other stalls. + + + + + + + Create your products, add a small description and an image. Choose to + what stall, if you have more than one, it belongs to + + + +
+ +
+
+
+
+
{% endblock %} {% block scripts %} {{ window_vars(user) }} @@ -1097,6 +1143,18 @@ mixins: [windowMixin], data: function () { return { + step: 1, + onboarding: { + show: true, + showAgain: false, + finish: () => { + this.$q.localStorage.set( + 'lnbits.DAOnboarding', + this.onboarding.showAgain + ) + this.onboarding.show = false + } + }, keys: null, products: [], orders: [], @@ -2163,6 +2221,9 @@ }, async created() { if (this.g.user.wallets.length) { + let showOnboard = this.$q.localStorage.getItem('lnbits.DAOnboarding') + this.onboarding.show = showOnboard === true || showOnboard == null + this.onboarding.showAgain = showOnboard || false this.getStalls() this.getProducts() this.getZones()