Show plan badge in section headers if feature is not included

This commit is contained in:
Johannes Zellner
2025-05-13 13:26:35 +02:00
parent 43c69d4288
commit 6c115804e8
5 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ onMounted(async () => {
<div>{{ $t('users.users.count', { count: users.length }) }}</div>
</Section>
<Section :title="$t('users.groups.title')" :disabled="!features.userGroups">
<Section :title="$t('users.groups.title')" :title-badge="!features.userGroups ? 'Pro' : ''">
<template #header-buttons>
<Button icon="fa-solid fa-plus" @click="onEditOrAddGroup()">{{ $t('users.groups.newGroupAction') }}</Button>
</template>