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;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.q-card {
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
.q-card code {
|
.q-card code {
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,15 +63,14 @@ const DynamicComponent = {
|
||||||
}
|
}
|
||||||
|
|
||||||
//housecleaning, remove old component
|
//housecleaning, remove old component
|
||||||
//const previousRouteName =
|
const previousRouteName =
|
||||||
// this.$router.currentRoute.value.meta.previousRouteName
|
this.$router.currentRoute.value.meta.previousRouteName
|
||||||
//if (
|
if (
|
||||||
// previousRouteName &&
|
previousRouteName &&
|
||||||
// window.app._context.components[previousRouteName]
|
window.app._context.components[previousRouteName]
|
||||||
//) {
|
) {
|
||||||
// delete window.app._context.components[previousRouteName]
|
delete window.app._context.components[previousRouteName]
|
||||||
//}
|
}
|
||||||
|
|
||||||
//load component logic
|
//load component logic
|
||||||
const logicKey = `${this.$route.name}PageLogic`
|
const logicKey = `${this.$route.name}PageLogic`
|
||||||
const componentLogic = window[logicKey]
|
const componentLogic = window[logicKey]
|
||||||
|
|
@ -94,13 +93,7 @@ const DynamicComponent = {
|
||||||
template: html // Use the fetched HTML as the template
|
template: html // Use the fetched HTML as the template
|
||||||
})
|
})
|
||||||
delete window[logicKey] //dont need this anymore
|
delete window[logicKey] //dont need this anymore
|
||||||
console.log(
|
this.$forceUpdate()
|
||||||
`Component '${this.$route.name}' loaded. Keys: ${this.keys}`
|
|
||||||
)
|
|
||||||
if (!this.keys.includes(this.$route.name)) {
|
|
||||||
this.keys.push(this.$route.name)
|
|
||||||
this.$forceUpdate()
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error loading dynamic content:', error)
|
console.error('Error loading dynamic content:', error)
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,6 @@ video {
|
||||||
}
|
}
|
||||||
|
|
||||||
.q-card {
|
.q-card {
|
||||||
border-radius: 10px;
|
|
||||||
code {
|
code {
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue