feat(settings/user/color): confirmation modal text and synchronization

This commit is contained in:
2025-12-30 00:38:03 +01:00
parent 408abb695d
commit 6beba85afa
2 changed files with 7 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ const { onRender, onClick } = useScreen();
const app = useAppStore();
const store = useSettingsStore();
const { assets } = useAssets();
const confirmationModal = useConfirmationModal();
const GRID_SIZE = 4;
const GRID_START_X = 32;
@@ -105,16 +106,14 @@ const handleCancel = () => {
store.closeSubMenu();
};
const { open: openModal, close: closeModal } = useConfirmationModal();
const handleConfirm = () => {
app.save();
openModal({
text: "hey",
confirmationModal.open({
text: $t("settings.user.color.confirmation"),
onClosed: () => store.closeSubMenu(),
});
setTimeout(() => {
closeModal();
store.closeSubMenu();
confirmationModal.close();
}, 2000);
};
</script>

View File

@@ -33,7 +33,8 @@
"color": {
"title": "Color",
"description": "Select your favorite color."
"description": "Select your favorite color.",
"confirmation": "Color setting saved."
}
},
"touchScreen": {