From 762ad3832cdcf7a75be529bd0052e599526b4782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20=C3=96hlerking?= Date: Thu, 22 Aug 2024 09:51:25 +0200 Subject: [PATCH] fix board menu --- src/locales/de.ts | 1 + src/locales/en.ts | 1 + src/locales/es.ts | 2 ++ src/locales/uk.ts | 1 + .../feature/board-deleted-element/DeletedElementMenu.vue | 2 +- src/modules/ui/board/BoardMenu.vue | 7 +++---- src/modules/ui/board/board-menu-scope.ts | 3 ++- 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/locales/de.ts b/src/locales/de.ts index 8a7fcdb7ba..0f5aa0aa8d 100644 --- a/src/locales/de.ts +++ b/src/locales/de.ts @@ -328,6 +328,7 @@ export default { "components.board.menu.fileElement": "Datei-Einstellungen", "components.board.menu.linkElement": "Link-Einstellungen", "components.board.menu.submissionElement": "Abgabe-Einstellungen", + "components.board.menu.deletedElement": "Gelöschter-Inhalt-Einstellungen", "components.board.notifications.errors.fileNameExists": "Es existiert bereits eine Datei mit diesem Namen.", "components.board.notifications.errors.fileServiceNotAvailable": diff --git a/src/locales/en.ts b/src/locales/en.ts index cf7ff30fb9..80f0285a97 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -325,6 +325,7 @@ export default { "components.board.menu.fileElement": "File settings", "components.board.menu.linkElement": "Link settings", "components.board.menu.submissionElement": "Submission settings", + "components.board.menu.deletedElement": "Deleted content settings", "components.board.notifications.errors.fileNameExists": "A file with this name already exists.", "components.board.notifications.errors.fileServiceNotAvailable": diff --git a/src/locales/es.ts b/src/locales/es.ts index b1cfaba575..9ba667be81 100644 --- a/src/locales/es.ts +++ b/src/locales/es.ts @@ -332,6 +332,8 @@ export default { "components.board.menu.fileElement": "Configuración del archivo", "components.board.menu.linkElement": "Configuración del enlace", "components.board.menu.submissionElement": "Configuración del envío", + "components.board.menu.deletedElement": + "Configuración de contenido eliminado", "components.board.notifications.errors.fileNameExists": "Ya existe un archivo con este nombre.", "components.board.notifications.errors.fileServiceNotAvailable": diff --git a/src/locales/uk.ts b/src/locales/uk.ts index b7983f66b6..7dbdced9a6 100644 --- a/src/locales/uk.ts +++ b/src/locales/uk.ts @@ -333,6 +333,7 @@ export default { "components.board.menu.fileElement": "Налаштування файлу", "components.board.menu.linkElement": "Налаштування посилання", "components.board.menu.submissionElement": "Налаштування Подання", + "components.board.menu.deletedElement": "Видалені налаштування вмісту", "components.board.notifications.errors.fileNameExists": "Файл з такою назвою вже існує.", "components.board.notifications.errors.fileServiceNotAvailable": diff --git a/src/modules/feature/board-deleted-element/DeletedElementMenu.vue b/src/modules/feature/board-deleted-element/DeletedElementMenu.vue index e7f5b35fbb..6fb2174569 100644 --- a/src/modules/feature/board-deleted-element/DeletedElementMenu.vue +++ b/src/modules/feature/board-deleted-element/DeletedElementMenu.vue @@ -1,5 +1,5 @@ diff --git a/src/modules/ui/board/BoardMenu.vue b/src/modules/ui/board/BoardMenu.vue index 337c3fb97f..c8e99af5b2 100644 --- a/src/modules/ui/board/BoardMenu.vue +++ b/src/modules/ui/board/BoardMenu.vue @@ -17,7 +17,7 @@ > {{ mdiDotsVertical }} - {{ t(boardMenuAriaLabel) }} + {{ $t(boardMenuAriaLabel) }} @@ -32,7 +32,6 @@ import { mdiDotsVertical } from "@mdi/js"; import { computed, PropType, provide, toRef } from "vue"; import { BoardMenuScope } from "./board-menu-scope"; import { MENU_SCOPE } from "./injection-tokens"; -import { useI18n } from "vue-i18n"; const props = defineProps({ scope: { @@ -48,8 +47,6 @@ const props = defineProps({ const scope = toRef(props, "scope"); provide(MENU_SCOPE, scope.value); -const { t } = useI18n(); - const ariaLabelForScope: Record = { board: "components.board.menu.board", column: "components.board.menu.column", @@ -61,6 +58,7 @@ const ariaLabelForScope: Record = { fileElement: "components.board.menu.fileElement", linkElement: "components.board.menu.linkElement", submissionElement: "components.board.menu.submissionElement", + deletedElement: "components.board.menu.deletedElement", }; const boardMenuAriaLabel = computed(() => { @@ -75,6 +73,7 @@ const boardScopesWithBackground: Array = [ "fileElement", "linkElement", "submissionElement", + "deletedElement", ]; const hasBackground = computed(() => diff --git a/src/modules/ui/board/board-menu-scope.ts b/src/modules/ui/board/board-menu-scope.ts index bda0b49fbe..ae38e09e1b 100644 --- a/src/modules/ui/board/board-menu-scope.ts +++ b/src/modules/ui/board/board-menu-scope.ts @@ -7,4 +7,5 @@ export type BoardMenuScope = | "externalToolElement" | "fileElement" | "linkElement" - | "submissionElement"; + | "submissionElement" + | "deletedElement";