From 677302cf577b49e51a64fdbada141b7302a2325a Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Tue, 30 Dec 2025 00:20:28 +0100 Subject: [PATCH] feat(settings): assign all notification images --- .../Settings/TopScreen/Notifications.vue | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/app/components/Settings/TopScreen/Notifications.vue b/app/components/Settings/TopScreen/Notifications.vue index 1054866..dfb0488 100644 --- a/app/components/Settings/TopScreen/Notifications.vue +++ b/app/components/Settings/TopScreen/Notifications.vue @@ -31,11 +31,23 @@ const mainNotification = computed(() => ({ description: $t("settings.description"), })); -// TODO: this could be computed instead -const MENU_IMAGES: Record = { +const IMAGES_MAP: Record = { options: assets.settings.topScreen.options.options, + optionsStartUp: assets.settings.topScreen.options.startUp, + optionsLanguage: assets.settings.topScreen.options.language, + optionsGbaMode: assets.settings.topScreen.options.gbaMode, + clock: assets.settings.topScreen.clock.clock, + clockTime: assets.settings.topScreen.clock.time, + clockDate: assets.settings.topScreen.clock.date, + clockAlarm: assets.settings.topScreen.clock.alarm, + user: assets.settings.topScreen.user.user, + userUserName: assets.settings.topScreen.user.userName, + userBirthday: assets.settings.topScreen.user.birthday, + userMessage: assets.settings.topScreen.user.message, + userColor: assets.settings.topScreen.user.color, + touchScreen: assets.settings.topScreen.touchScreen.touchScreen, }; @@ -43,19 +55,12 @@ const menuNotification = computed(() => { if (!store.currentMenu || !store.menuExpanded) return null; return { - image: MENU_IMAGES[store.currentMenu]!, + image: IMAGES_MAP[store.currentMenu]!, title: $t(`settings.${store.currentMenu}.title`), description: $t(`settings.${store.currentMenu}.description`), }; }); -const IMAGES_MAP: Record = { - optionsStartUp: assets.settings.topScreen.options.startUp, - optionsLanguage: assets.settings.topScreen.options.language, - optionsGbaMode: assets.settings.topScreen.options.gbaMode, - userColor: assets.settings.topScreen.user.color, -}; - const submenuNotification = computed(() => { if (!store.currentSubMenu) return null;