feat: improve account navigation (#3623)
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -191,6 +191,14 @@ window.PageAccount = {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
tab(tab) {
|
||||
this.$router.push(`/account#${tab}`)
|
||||
},
|
||||
$route(to) {
|
||||
if (to.hash.length > 1) {
|
||||
this.tab = to.hash.replace('#', '')
|
||||
}
|
||||
},
|
||||
'assetsTable.search': {
|
||||
handler() {
|
||||
const props = {}
|
||||
@@ -688,9 +696,8 @@ window.PageAccount = {
|
||||
} catch (e) {
|
||||
LNbits.utils.notifyApiError(e)
|
||||
}
|
||||
const hash = window.location.hash.replace('#', '')
|
||||
if (hash) {
|
||||
this.tab = hash
|
||||
if (this.$route.hash.length > 1) {
|
||||
this.tab = this.$route.hash.replace('#', '')
|
||||
}
|
||||
await this.getApiACLs()
|
||||
await this.getUserAssets()
|
||||
|
||||
@@ -22,13 +22,13 @@ window.PageAdmin = {
|
||||
$route(to) {
|
||||
if (to.hash.length > 1) {
|
||||
this.tab = to.hash.replace('#', '')
|
||||
} else {
|
||||
this.$router.push(`/admin#funding`)
|
||||
}
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
this.tab = this.$route.hash.replace('#', '')
|
||||
if (this.$route.hash.length > 1) {
|
||||
this.tab = this.$route.hash.replace('#', '')
|
||||
}
|
||||
await this.getSettings()
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user