diff --git a/dashboard/src/components/Sidebar.vue b/dashboard/src/components/Sidebar.vue index 2514c267a..e9a382932 100644 --- a/dashboard/src/components/Sidebar.vue +++ b/dashboard/src/components/Sidebar.vue @@ -15,8 +15,16 @@ function onClose() { isOpen.value = false; } +const activeGroup = ref(''); +function onToggleGroup(group) { + activeGroup.value = activeGroup.value === group ? '' : group; +} + function onHashChange() { active.value = window.location.hash.slice(2); + + if (active.value.indexOf('email') === 0) activeGroup.value = 'email'; + else activeGroup.value = ''; } onMounted(() => { @@ -45,9 +53,14 @@ onUnmounted(() => { {{ $t('backups.title') }} {{ $t('branding.title') }} {{ $t('domains.title') }} - {{ $t('emails.title') }} - {{ $t('email.incoming.mailboxes.title') }} - {{ $t('email.incoming.mailinglists.title') }} +
+