fix: extension stayed active in frontend extension list (#3617)

This commit is contained in:
dni ⚡
2025-12-04 10:05:40 +01:00
committed by GitHub
parent ad268516a9
commit 1fe35070f4
3 changed files with 3 additions and 7 deletions
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>