feat: page title

This commit is contained in:
2026-07-14 14:33:01 +02:00
parent 9b3c90d6be
commit d6f90c710e
4 changed files with 30 additions and 2 deletions
+4 -1
View File
@@ -11,7 +11,7 @@ import { relativeTime } from "@/lib/dates";
import { useAlertStore } from "@/stores/alerts";
import { useI18n } from "vue-i18n";
const emit = defineEmits<(e: "clone" | "delete", task: Task) => void>();
const emit = defineEmits<(e: "clone" | "delete" | "updated", task: Task) => void>();
const task = defineModel<Task>({ required: true });
defineProps<{ showLastChecked: boolean; showNextReset: boolean }>();
@@ -39,6 +39,7 @@ function onSave() {
})
.then((newTask) => {
task.value = newTask;
emit("updated", newTask);
alertSuccess(i18n.t("alerts.task_updated"));
})
.catch(() => {
@@ -57,6 +58,7 @@ function onCheck() {
})
.then((newTask) => {
task.value = newTask;
emit("updated", newTask);
})
.catch(() => {
alertError(i18n.t("alerts.task_update_error"));
@@ -68,6 +70,7 @@ function onCheck() {
})
.then((newTask) => {
task.value = newTask;
emit("updated", newTask);
})
.catch(() => {
alertError(i18n.t("alerts.task_update_error"));