feat: added home button on error page (#2330)

* Added redirect on error page if user id not present as users keep getting stuck
This commit is contained in:
Arc
2024-03-21 12:24:38 +01:00
committed by GitHub
parent 8dcb53aea0
commit d208e68885
2 changed files with 25 additions and 12 deletions
+24 -11
View File
@@ -13,18 +13,28 @@
></q-icon>
<h5 class="q-my-none">{{ err }}</h5>
<h4>
If you believe this shouldn't be an error please bring it up on
https://t.me/lnbits
</h4>
<br />
<q-btn
@click="goBack"
color="grey"
outline
label="Back"
class="full-width"
></q-btn>
<div class="row">
<div class="col">
<q-btn
@click="goBack"
color="grey"
outline
label="Back"
style="width: 100%"
></q-btn>
</div>
<div class="col">
<q-btn
@click="goHome"
color="grey"
outline
label="Home"
style="width: 100%"
></q-btn>
</div>
</div>
</center>
</q-card-section>
</q-card>
@@ -42,6 +52,9 @@
methods: {
goBack: function () {
window.history.back()
},
goHome: function () {
window.location.href = '/'
}
}
})