From 4e260c5a8b63dda3ffce0c5d8beae6981ebf4c00 Mon Sep 17 00:00:00 2001 From: Filipe Dobreira Date: Tue, 24 Sep 2024 13:28:54 +0100 Subject: [PATCH] feat: Fix, add, tweak various empty states across the app (#241) * fix: add empty state to locations list * fix: add empty states for homepage lists * fix: add empty state to notifiers list * fix: update profile notifiers to use translation, add en and pt-pt copy * chore: tweak copy for notifier empty state * fix: add new empty state for search page * fix: update new empty states to use translation strings * chore: eslint fixes, translation * fix: translation key --------- Co-authored-by: Matt Kilgore --- frontend/assets/css/main.css | 2 +- frontend/components/Base/Card.vue | 2 +- frontend/components/Item/View/Selectable.vue | 2 +- frontend/components/Location/Tree/Root.vue | 3 +++ frontend/locales/en.json | 10 ++++++++++ frontend/locales/pt-PT.json | 7 +++++++ frontend/pages/home/index.vue | 11 +++++++---- frontend/pages/index.vue | 7 +------ frontend/pages/items.vue | 11 +++++++---- frontend/pages/profile.vue | 11 ++++++++--- 10 files changed, 46 insertions(+), 20 deletions(-) diff --git a/frontend/assets/css/main.css b/frontend/assets/css/main.css index 7fad7275..8a9d8fa7 100644 --- a/frontend/assets/css/main.css +++ b/frontend/assets/css/main.css @@ -27,4 +27,4 @@ ::-webkit-scrollbar-thumb:hover { background-color: #9B9B9B; -} \ No newline at end of file +} diff --git a/frontend/components/Base/Card.vue b/frontend/components/Base/Card.vue index e08c7caf..ddc2ed81 100644 --- a/frontend/components/Base/Card.vue +++ b/frontend/components/Base/Card.vue @@ -1,5 +1,5 @@
-
+

+ {{ $t("profile.no_notifiers") }} +

+

{{ n.name }}

@@ -465,7 +468,9 @@
- {{ $t("profile.display_header", { currentValue: preferences.displayHeaderDecor }) }} + + {{ $t("profile.display_header", { currentValue: preferences.displayHeaderDecor }) }} +