feat: HA-Entitaeten fuer Push-Erinnerungen und Kanban; neues Feature Sidebar-Sichtbarkeit pro Nutzer V2
This commit is contained in:
@@ -157,10 +157,11 @@ export const TOOLS = [
|
||||
// Neues Tool: { id:'...', Icon:..., label:'...', navLabel:'...', group:'...', component:... },
|
||||
];
|
||||
|
||||
export function getGroupedTools(isAdmin = false) {
|
||||
export function getGroupedTools(isAdmin = false, hiddenTools = []) {
|
||||
const groups = {};
|
||||
for (const t of TOOLS) {
|
||||
if (t.adminOnly && !isAdmin) continue;
|
||||
if (hiddenTools.includes(t.id)) continue;
|
||||
const g = t.group || 'Allgemein';
|
||||
if (!groups[g]) groups[g] = [];
|
||||
groups[g].push(t);
|
||||
|
||||
Reference in New Issue
Block a user