fix: extension stayed active in frontend extension list (#3617)
This commit is contained in:
parent
ad268516a9
commit
1fe35070f4
3 changed files with 3 additions and 7 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
|
|
@ -45,10 +45,6 @@ window.app.component('lnbits-manage-extension-list', {
|
|||
.toLocaleLowerCase()
|
||||
.includes(this.searchTerm.toLocaleLowerCase())
|
||||
})
|
||||
.map(obj => {
|
||||
obj.isActive = window.location.pathname.startsWith(obj.url)
|
||||
return obj
|
||||
})
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
v-for="extension in userExtensions"
|
||||
:key="extension.code"
|
||||
clickable
|
||||
:active="extension.isActive"
|
||||
:active="$route.path.startsWith(extension.url)"
|
||||
tag="a"
|
||||
:href="extension.url"
|
||||
>
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
><span v-text="extension.name"></span>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
<q-item-section side v-show="extension.isActive">
|
||||
<q-item-section side v-show="$route.path.startsWith(extension.url)">
|
||||
<q-icon name="chevron_right" color="grey-5" size="md"></q-icon>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue