From f9eda5cd68690378a36d2fd5680d53fef252583e Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Thu, 17 Oct 2024 13:48:47 +0200 Subject: [PATCH] conditional tooltip & label for missing permission --- frontend/src/components/VaultList.vue | 4 ++-- frontend/src/i18n/de-DE.json | 2 ++ frontend/src/i18n/en-US.json | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/VaultList.vue b/frontend/src/components/VaultList.vue index 21e5ec23..36afe773 100644 --- a/frontend/src/components/VaultList.vue +++ b/frontend/src/components/VaultList.vue @@ -40,7 +40,7 @@
- + {{ t('vaultList.addVault') }} @@ -98,7 +98,7 @@

{{ t('vaultList.empty.title') }}

-

{{ t('vaultList.empty.description') }}

+

{{ t('vaultList.empty.description') }}

diff --git a/frontend/src/i18n/de-DE.json b/frontend/src/i18n/de-DE.json index bf4c366e..6b0115ba 100644 --- a/frontend/src/i18n/de-DE.json +++ b/frontend/src/i18n/de-DE.json @@ -244,6 +244,8 @@ "vaultList.empty.title": "Keine Tresore", "vaultList.empty.description": "Beginne mit der Erstellung eines neuen Tresors.", "vaultList.addVault": "Hinzufügen", + "vaultList.addVault.disabled.licenseViolation": "Lizenz überschritten.", + "vaultList.addVault.disabled.missingPermission": "Die fehlt die Berechtigung zur Erstellung von Tresoren.", "vaultList.addVault.create": "Neu erstellen", "vaultList.addVault.recover": "Wiederherstellen", "vaultList.filter": "Filter", diff --git a/frontend/src/i18n/en-US.json b/frontend/src/i18n/en-US.json index 9537ecd7..768294af 100644 --- a/frontend/src/i18n/en-US.json +++ b/frontend/src/i18n/en-US.json @@ -245,6 +245,8 @@ "vaultList.empty.title": "No vaults", "vaultList.empty.description": "Get started by creating a new vault.", "vaultList.addVault": "Add", + "vaultList.addVault.disabled.licenseViolation": "License limit exceeded.", + "vaultList.addVault.disabled.missingPermission": "You don't have permission to create a vault.", "vaultList.addVault.create": "Create New", "vaultList.addVault.recover": "Recover Existing", "vaultList.filter": "Filter",