feat(core): move disclaimer to wallet page

This commit is contained in:
Eneko Illarramendi
2020-04-21 23:15:50 +02:00
parent d917feeb02
commit 5806beaeb7
3 changed files with 21 additions and 12 deletions
+9
View File
@@ -138,6 +138,10 @@ new Vue({
},
paymentsChart: {
show: false
},
disclaimerDialog: {
show: false,
location: window.location
}
};
},
@@ -339,5 +343,10 @@ new Vue({
created: function () {
this.fetchPayments();
setTimeout(this.checkPendingPayments(), 1200);
if (!this.$q.localStorage.getItem('lnbits.disclaimerShown')) {
this.disclaimerDialog.show = true;
this.$q.localStorage.set('lnbits.disclaimerShown', true);
};
}
});