From 1b2a9c54b674c32f5a78c31a9aa8e84bf41a386b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Fri, 5 Apr 2024 07:44:54 +0200 Subject: [PATCH] feat: active state for manage menu items closes #2190 --- lnbits/static/js/components.js | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/lnbits/static/js/components.js b/lnbits/static/js/components.js index e88cce9dd..dfaeecbb1 100644 --- a/lnbits/static/js/components.js +++ b/lnbits/static/js/components.js @@ -171,6 +171,11 @@ Vue.component('lnbits-extension-list', { Vue.component('lnbits-manage', { props: ['showAdmin', 'showNode', 'showExtensions'], + methods: { + isActive: function (path) { + return window.location.pathname === path + } + }, data: function () { return { extensions: [], @@ -181,29 +186,29 @@ Vue.component('lnbits-manage', {
- + - + - + - + - + - +
- + - + - +