forked from vikunja/frontend
fix: don't show user deletion menu entry in user settings if the server disabled it
This commit is contained in:
parent
f72c847e99
commit
09b76b7bd4
|
@ -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,
|
||||
},
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue