From bd890b2f0ed7bef594aea99841cd8de1124dda33 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sun, 27 Jul 2025 14:51:51 -0400 Subject: [PATCH] add dialog for deleting smart collection --- .../Gallery/AppBar/Collection/Base.vue | 2 + .../Collection/CollectionInfoDrawer.vue | 61 ++-- .../Collection/SmartCollectionInfoDrawer.vue | 273 ++++++++++++++++++ frontend/src/components/Home/Collections.vue | 1 - .../Dialog/DeleteSmartCollection.vue | 5 - frontend/src/locales/en_GB/collection.json | 4 +- 6 files changed, 304 insertions(+), 42 deletions(-) create mode 100644 frontend/src/components/Gallery/AppBar/Collection/SmartCollectionInfoDrawer.vue diff --git a/frontend/src/components/Gallery/AppBar/Collection/Base.vue b/frontend/src/components/Gallery/AppBar/Collection/Base.vue index 7ce6cf944..84e953f5b 100644 --- a/frontend/src/components/Gallery/AppBar/Collection/Base.vue +++ b/frontend/src/components/Gallery/AppBar/Collection/Base.vue @@ -1,6 +1,7 @@ + + + diff --git a/frontend/src/components/Home/Collections.vue b/frontend/src/components/Home/Collections.vue index 9b3152c78..54956cc3e 100644 --- a/frontend/src/components/Home/Collections.vue +++ b/frontend/src/components/Home/Collections.vue @@ -4,7 +4,6 @@ import RSection from "@/components/common/RSection.vue"; import { type CollectionType } from "@/stores/collections"; import { views } from "@/utils"; import { isNull } from "lodash"; -import { useI18n } from "vue-i18n"; import { onBeforeUnmount, onMounted, ref } from "vue"; const props = defineProps<{ diff --git a/frontend/src/components/common/Collection/Dialog/DeleteSmartCollection.vue b/frontend/src/components/common/Collection/Dialog/DeleteSmartCollection.vue index d748c6fb4..2e4ba5c10 100644 --- a/frontend/src/components/common/Collection/Dialog/DeleteSmartCollection.vue +++ b/frontend/src/components/common/Collection/Dialog/DeleteSmartCollection.vue @@ -87,11 +87,6 @@ function closeDialog() { t("collection.removing-smart-collection-2") }} - - - {{ t("collection.smart-collection-delete-warning") }} - -