Many improvements. Still no reactivity on List
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
import { useAuthStore } from 'src/stores/auth';
|
||||
|
||||
export const links = [
|
||||
export type Link = {
|
||||
name: string;
|
||||
to: string;
|
||||
icon: string;
|
||||
front_links?: boolean;
|
||||
enabled?: boolean;
|
||||
color?: string;
|
||||
sublinks?: Link[];
|
||||
requiredRoles?: string[];
|
||||
};
|
||||
|
||||
export const links = <Link[]>[
|
||||
{
|
||||
name: 'Home',
|
||||
to: '/',
|
||||
@@ -30,7 +41,7 @@ export const links = [
|
||||
enabled: true,
|
||||
sublinks: [
|
||||
{
|
||||
name: 'List',
|
||||
name: 'My View',
|
||||
to: '/schedule/list',
|
||||
icon: 'list',
|
||||
front_links: false,
|
||||
@@ -44,7 +55,7 @@ export const links = [
|
||||
enabled: true,
|
||||
},
|
||||
{
|
||||
name: 'View',
|
||||
name: 'Calendar',
|
||||
to: '/schedule/view',
|
||||
icon: 'calendar_month',
|
||||
front_links: false,
|
||||
@@ -56,6 +67,7 @@ export const links = [
|
||||
icon: 'edit_calendar',
|
||||
front_links: false,
|
||||
enabled: true,
|
||||
color: 'accent',
|
||||
requiredRoles: ['Schedule Admins'],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user