mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-13 19:37:42 +01:00
Fixes switching back to wallet (#2937)
* tals fix * switched border back * make * bundle
This commit is contained in:
parent
503a599341
commit
9d2e52f694
5 changed files with 11 additions and 22 deletions
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
2
lnbits/static/bundle.min.css
vendored
2
lnbits/static/bundle.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -532,9 +532,6 @@ video {
|
|||
word-break: break-word;
|
||||
}
|
||||
|
||||
.q-card {
|
||||
border-radius: 10px;
|
||||
}
|
||||
.q-card code {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
|
|
@ -63,15 +63,14 @@ const DynamicComponent = {
|
|||
}
|
||||
|
||||
//housecleaning, remove old component
|
||||
//const previousRouteName =
|
||||
// this.$router.currentRoute.value.meta.previousRouteName
|
||||
//if (
|
||||
// previousRouteName &&
|
||||
// window.app._context.components[previousRouteName]
|
||||
//) {
|
||||
// delete window.app._context.components[previousRouteName]
|
||||
//}
|
||||
|
||||
const previousRouteName =
|
||||
this.$router.currentRoute.value.meta.previousRouteName
|
||||
if (
|
||||
previousRouteName &&
|
||||
window.app._context.components[previousRouteName]
|
||||
) {
|
||||
delete window.app._context.components[previousRouteName]
|
||||
}
|
||||
//load component logic
|
||||
const logicKey = `${this.$route.name}PageLogic`
|
||||
const componentLogic = window[logicKey]
|
||||
|
@ -94,13 +93,7 @@ const DynamicComponent = {
|
|||
template: html // Use the fetched HTML as the template
|
||||
})
|
||||
delete window[logicKey] //dont need this anymore
|
||||
console.log(
|
||||
`Component '${this.$route.name}' loaded. Keys: ${this.keys}`
|
||||
)
|
||||
if (!this.keys.includes(this.$route.name)) {
|
||||
this.keys.push(this.$route.name)
|
||||
this.$forceUpdate()
|
||||
}
|
||||
this.$forceUpdate()
|
||||
} catch (error) {
|
||||
console.error('Error loading dynamic content:', error)
|
||||
} finally {
|
||||
|
|
|
@ -207,7 +207,6 @@ video {
|
|||
}
|
||||
|
||||
.q-card {
|
||||
border-radius: 10px;
|
||||
code {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue