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:
parent
8dcb53aea0
commit
d208e68885
2 changed files with 25 additions and 12 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
// update cache version every time there is a new deployment
|
// update cache version every time there is a new deployment
|
||||||
// so the service worker reinitializes the cache
|
// so the service worker reinitializes the cache
|
||||||
const CACHE_VERSION = 122
|
const CACHE_VERSION = 123
|
||||||
const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-`
|
const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-`
|
||||||
|
|
||||||
const getApiKey = request => {
|
const getApiKey = request => {
|
||||||
|
|
|
||||||
|
|
@ -13,18 +13,28 @@
|
||||||
></q-icon>
|
></q-icon>
|
||||||
|
|
||||||
<h5 class="q-my-none">{{ err }}</h5>
|
<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 />
|
<br />
|
||||||
<q-btn
|
<div class="row">
|
||||||
@click="goBack"
|
<div class="col">
|
||||||
color="grey"
|
<q-btn
|
||||||
outline
|
@click="goBack"
|
||||||
label="Back"
|
color="grey"
|
||||||
class="full-width"
|
outline
|
||||||
></q-btn>
|
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>
|
</center>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
@ -42,6 +52,9 @@
|
||||||
methods: {
|
methods: {
|
||||||
goBack: function () {
|
goBack: function () {
|
||||||
window.history.back()
|
window.history.back()
|
||||||
|
},
|
||||||
|
goHome: function () {
|
||||||
|
window.location.href = '/'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue