Allow OS notifications

This commit is contained in:
2026-02-23 22:19:23 +08:00
parent 98355c3707
commit cc6fda0e79
11 changed files with 398 additions and 4 deletions
+23 -1
View File
@@ -387,6 +387,12 @@ List<NavSection> _buildSections(String role) {
icon: Icons.groups_2_outlined,
selectedIcon: Icons.groups_2,
),
NavItem(
label: 'Permissions',
route: '/settings/permissions',
icon: Icons.lock_open,
selectedIcon: Icons.lock,
),
NavItem(
label: 'Logout',
route: '',
@@ -398,7 +404,23 @@ List<NavSection> _buildSections(String role) {
];
}
return [NavSection(label: 'Operations', items: mainItems)];
// non-admin users still get a simple Settings section containing only
// permissions. this keeps the screen accessible without exposing the
// administrative management screens.
return [
NavSection(label: 'Operations', items: mainItems),
NavSection(
label: 'Settings',
items: [
NavItem(
label: 'Permissions',
route: '/settings/permissions',
icon: Icons.lock_open,
selectedIcon: Icons.lock,
),
],
),
];
}
List<NavItem> _standardNavItems() {