mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-10 04:49:22 +02:00
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
@ -1,6 +1,6 @@
|
||||
// update cache version every time there is a new deployment
|
||||
// so the service worker reinitializes the cache
|
||||
const CACHE_VERSION = 122
|
||||
const CACHE_VERSION = 123
|
||||
const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-`
|
||||
|
||||
const getApiKey = request => {
|
||||
|
@ -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 = '/'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user