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:... },
|
// Neues Tool: { id:'...', Icon:..., label:'...', navLabel:'...', group:'...', component:... },
|
||||||
];
|
];
|
||||||
|
|
||||||
export function getGroupedTools(isAdmin = false) {
|
export function getGroupedTools(isAdmin = false, hiddenTools = []) {
|
||||||
const groups = {};
|
const groups = {};
|
||||||
for (const t of TOOLS) {
|
for (const t of TOOLS) {
|
||||||
if (t.adminOnly && !isAdmin) continue;
|
if (t.adminOnly && !isAdmin) continue;
|
||||||
|
if (hiddenTools.includes(t.id)) continue;
|
||||||
const g = t.group || 'Allgemein';
|
const g = t.group || 'Allgemein';
|
||||||
if (!groups[g]) groups[g] = [];
|
if (!groups[g]) groups[g] = [];
|
||||||
groups[g].push(t);
|
groups[g].push(t);
|
||||||
|
|||||||
Reference in New Issue
Block a user