From 09b76b7bd476b9de653e53de579f1c533d101d4d Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 2 Nov 2022 10:44:14 +0100 Subject: [PATCH] fix: don't show user deletion menu entry in user settings if the server disabled it --- src/views/user/Settings.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/user/Settings.vue b/src/views/user/Settings.vue index 579c85daf6..67e6650f68 100644 --- a/src/views/user/Settings.vue +++ b/src/views/user/Settings.vue @@ -34,6 +34,7 @@ const totpEnabled = computed(() => configStore.totpEnabled) const caldavEnabled = computed(() => configStore.caldavEnabled) const migratorsEnabled = computed(() => configStore.migratorsEnabled) const isLocalUser = computed(() => authStore.info?.isLocalUser) +const userDeletionEnabled = computed(() => configStore.userDeletionEnabled) const navigationItems = computed(() => { const items = [ @@ -77,6 +78,7 @@ const navigationItems = computed(() => { { title: t('user.deletion.title'), routeName: 'user.settings.deletion', + condition: userDeletionEnabled.value, }, ]