feat(settings/clock/date): refresh date every second

This commit is contained in:
2026-01-14 23:37:11 +01:00
parent bfff7d5028
commit 5ee765f542

View File

@@ -1,10 +1,14 @@
<script setup lang="ts"> <script setup lang="ts">
import { SettingsBottomScreenNumberInput as NumberInput } from "#components"; import { SettingsBottomScreenNumberInput as NumberInput } from "#components";
import { useIntervalFn } from "@vueuse/core";
const store = useSettingsStore(); const store = useSettingsStore();
const confirmationModal = useConfirmationModal();
const now = new Date(); const now = ref(new Date());
useIntervalFn(() => {
now.value = new Date();
}, 1000);
const handleCancel = () => { const handleCancel = () => {
store.closeSubMenu(); store.closeSubMenu();