🛸 Makes menu reactive to features
This commit is contained in:
@@ -40,18 +40,10 @@
|
|||||||
href?: string;
|
href?: string;
|
||||||
feature: boolean;
|
feature: boolean;
|
||||||
active?: boolean;
|
active?: boolean;
|
||||||
submenu?: subMenuItem[];
|
submenu?: menuItem[];
|
||||||
};
|
};
|
||||||
|
|
||||||
type subMenuItem = {
|
$: menuItems = [
|
||||||
title: string;
|
|
||||||
icon: ConstructorOfATypedSvelteComponent;
|
|
||||||
href: string;
|
|
||||||
feature: boolean;
|
|
||||||
active: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
let menuItems = [
|
|
||||||
{
|
{
|
||||||
title: 'Controller',
|
title: 'Controller',
|
||||||
icon: MdiController,
|
icon: MdiController,
|
||||||
|
|||||||
Reference in New Issue
Block a user