replace when removing task

This commit is contained in:
Julien Calixte
2023-08-05 15:08:24 +02:00
parent 4855ee9558
commit 52c5f38f9e

View File

@@ -16,9 +16,9 @@ const taskStore = useTaskStore()
const task = computed(() => taskStore.getTask(props.id)) const task = computed(() => taskStore.getTask(props.id))
const deleteTask = () => { const deleteTask = () => {
if (window.confirm('Are you sure to delete this task?')) { if (window.confirm('Are you sure you want to delete this task?')) {
taskStore.remove(props.id) taskStore.remove(props.id)
router.push({ router.replace({
name: 'home' name: 'home'
}) })
} }