mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-14 11:05:47 +05:00
temporarily fix active
This commit is contained in:
parent
fd08694c88
commit
98f873aa84
@ -1,6 +1,6 @@
|
||||
const m = require('mithril');
|
||||
let active = 0;
|
||||
const Sidebar = () => {
|
||||
let active = 0;
|
||||
return {
|
||||
view: (v) =>
|
||||
m(
|
||||
@ -20,6 +20,7 @@ const Sidebar = () => {
|
||||
};
|
||||
};
|
||||
const SidebarQuickView = () => {
|
||||
let quickactive = -1;
|
||||
return {
|
||||
view: (v) =>
|
||||
m(
|
||||
@ -28,8 +29,8 @@ const SidebarQuickView = () => {
|
||||
m(
|
||||
m.route.Link,
|
||||
{
|
||||
class: index === active ? 'selected-sidebarquickview-link' : '',
|
||||
onclick: () => (active = index),
|
||||
class: index === quickactive ? 'selected-sidebarquickview-link' : '',
|
||||
onclick: () => (quickactive = index),
|
||||
href: v.attrs.baseRoute + panelName,
|
||||
},
|
||||
panelName
|
||||
|
||||
Loading…
Reference in New Issue
Block a user