fix: close dialog fix for Note & Task dialog

This commit is contained in:
Shariq Ansari 2023-12-13 17:27:05 +05:30
parent 41239a7a9a
commit 65e10ea4a1
2 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@
{
label: editMode ? 'Update' : 'Create',
variant: 'solid',
onClick: ({ close }) => updateNote(close),
onClick: () => updateNote(),
},
],
}"
@ -67,7 +67,7 @@ const title = ref(null)
const editMode = ref(false)
let _note = ref({})
async function updateNote(close) {
async function updateNote() {
if (
props.note.title === _note.value.title &&
props.note.content === _note.value.content
@ -97,7 +97,7 @@ async function updateNote(close) {
notes.value.reload()
}
}
close()
show.value = false
}
watch(

View File

@ -8,7 +8,7 @@
{
label: editMode ? 'Update' : 'Create',
variant: 'solid',
onClick: ({ close }) => updateTask(close),
onClick: () => updateTask(),
},
],
}"
@ -142,7 +142,7 @@ function updateTaskPriority(priority) {
_task.value.priority = priority
}
async function updateTask(close) {
async function updateTask() {
if (!_task.value.assigned_to) {
_task.value.assigned_to = getUser().email
}
@ -168,7 +168,7 @@ async function updateTask(close) {
tasks.value.reload()
}
}
close()
show.value = false
}
watch(