From bf2a69735db376b564045f5a67c2c0aa6352a53f Mon Sep 17 00:00:00 2001 From: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com> Date: Tue, 22 Oct 2024 17:45:21 +0200 Subject: [PATCH] feat: Group and household deletion tooltips (#4414) --- frontend/lang/messages/en-US.json | 4 ++- frontend/pages/admin/manage/groups/index.vue | 35 +++++++++++-------- .../pages/admin/manage/households/index.vue | 35 +++++++++++-------- 3 files changed, 45 insertions(+), 29 deletions(-) diff --git a/frontend/lang/messages/en-US.json b/frontend/lang/messages/en-US.json index 99d4814ade0..0166401c7e5 100644 --- a/frontend/lang/messages/en-US.json +++ b/frontend/lang/messages/en-US.json @@ -1271,7 +1271,9 @@ "debug-openai-services": "Debug OpenAI Services", "debug-openai-services-description": "Use this page to debug OpenAI services. You can test your OpenAI connection and see the results here. If you have image services enabled, you can also provide an image.", "run-test": "Run Test", - "test-results": "Test Results" + "test-results": "Test Results", + "group-delete-note": "Groups with users or households cannot be deleted", + "household-delete-note": "Households with users cannot be deleted" }, "profile": { "welcome-user": "👋 Welcome, {0}!", diff --git a/frontend/pages/admin/manage/groups/index.vue b/frontend/pages/admin/manage/groups/index.vue index 28673593d89..7f52b12d34a 100644 --- a/frontend/pages/admin/manage/groups/index.vue +++ b/frontend/pages/admin/manage/groups/index.vue @@ -47,20 +47,27 @@ {{ item.users.length }} - - - {{ $globals.icons.delete }} - - + + + + + + {{ $globals.icons.delete }} + + + + + {{ $tc("admin.group-delete-note") }} + diff --git a/frontend/pages/admin/manage/households/index.vue b/frontend/pages/admin/manage/households/index.vue index 122ba20b192..98426310f4e 100644 --- a/frontend/pages/admin/manage/households/index.vue +++ b/frontend/pages/admin/manage/households/index.vue @@ -63,20 +63,27 @@ {{ item.webhooks.length > 0 ? $t("general.yes") : $t("general.no") }} - - - {{ $globals.icons.delete }} - - + + + + + + {{ $globals.icons.delete }} + + + + + {{ $tc("admin.household-delete-note") }} +