fix: remove mail settings, automation/agents from sidebar + settings from bottom
- Remove Einstellungen from E-Mail group (accessible via Settings page) - Remove Automation and Agenten from sidebar (accessible via Topbar profile menu) - Remove Settings from sidebar bottom items
This commit is contained in:
@@ -69,24 +69,7 @@ class AutomationPlugin(BasePlugin):
|
||||
"agents:execute",
|
||||
],
|
||||
is_core=False,
|
||||
menu_items=[
|
||||
FrontendMenuItem(
|
||||
label_key="nav.automation",
|
||||
label="Automation",
|
||||
path="/automation",
|
||||
icon="Zap",
|
||||
group="Automation",
|
||||
order=50,
|
||||
),
|
||||
FrontendMenuItem(
|
||||
label_key="nav.agents",
|
||||
label="Agenten",
|
||||
path="/agents",
|
||||
icon="Bot",
|
||||
group="Automation",
|
||||
order=51,
|
||||
),
|
||||
],
|
||||
menu_items=[],
|
||||
page_routes=[
|
||||
FrontendPageRoute(
|
||||
path="/automation",
|
||||
|
||||
@@ -57,8 +57,7 @@ class MailPlugin(BasePlugin):
|
||||
migrations=["0001_initial.sql", "0006_flag_type.sql", "0007_sync_queue.sql", "0008_sync_queue_deleted_at.sql", "0009_remove_mail_soft_delete.sql", "0010_add_deleted_at.sql"],
|
||||
permissions=["mail:read", "mail:send", "mail:config", "mail:share", "mail:write", "mail:delete"],
|
||||
menu_items=[
|
||||
FrontendMenuItem(label_key='nav.mail', label='E-Mail', path='/mail', icon='Mail', group='E-Mail', order=30),
|
||||
FrontendMenuItem(label_key='nav.mail.settings', label='Einstellungen', path='/mail/settings', icon='Settings', group='E-Mail', order=31),
|
||||
FrontendMenuItem(label_key='nav.mail', label='E-Mail', path='/mail', icon='Mail', order=30),
|
||||
],
|
||||
page_routes=[
|
||||
FrontendPageRoute(path='/mail', component='@/pages/Mail', protected=True),
|
||||
|
||||
@@ -32,9 +32,7 @@ const singleItems: NavSingleItem[] = [
|
||||
{ to: '/contacts', labelKey: 'nav.contacts', icon: <Users className="w-5 h-5 flex-shrink-0" aria-hidden="true" strokeWidth={2} />, order: 10 },
|
||||
];
|
||||
|
||||
const bottomItems: NavSingleItem[] = [
|
||||
{ to: '/settings', labelKey: 'nav.settings', icon: <Settings className="w-5 h-5 flex-shrink-0" aria-hidden="true" strokeWidth={2} />, order: 999 },
|
||||
];
|
||||
const bottomItems: NavSingleItem[] = [];
|
||||
|
||||
export function Sidebar() {
|
||||
const { t } = useTranslation();
|
||||
|
||||
Reference in New Issue
Block a user