fix: don't show user deletion menu entry in user settings if the server disabled it
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2022-11-02 10:44:14 +01:00
parent f72c847e99
commit 09b76b7bd4
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 0 deletions

View File

@ -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,
},
]