forked from vikunja/frontend
fix: name update tasks function correctly
This commit is contained in:
parent
f0c2692dac
commit
a734bad5e4
|
@ -14,7 +14,7 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
</message>
|
</message>
|
||||||
<add-task
|
<add-task
|
||||||
@taskAdded="updateTaskProject"
|
@taskAdded="updateTaskKey"
|
||||||
class="is-max-width-desktop"
|
class="is-max-width-desktop"
|
||||||
/>
|
/>
|
||||||
<template v-if="!hasTasks && !loading">
|
<template v-if="!hasTasks && !loading">
|
||||||
|
@ -102,7 +102,7 @@ const deletionScheduledAt = computed(() => parseDateOrNull(authStore.info?.delet
|
||||||
// FIXME: Should use pinia (somehow?)
|
// FIXME: Should use pinia (somehow?)
|
||||||
const showTasksKey = ref(0)
|
const showTasksKey = ref(0)
|
||||||
|
|
||||||
function updateTaskProject() {
|
function updateTaskKey() {
|
||||||
showTasksKey.value++
|
showTasksKey.value++
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
class="list-view__add-task"
|
class="list-view__add-task"
|
||||||
ref="addTaskRef"
|
ref="addTaskRef"
|
||||||
:default-position="firstNewPosition"
|
:default-position="firstNewPosition"
|
||||||
@taskAdded="updateTaskProject"
|
@taskAdded="updateTaskList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<nothing v-if="ctaVisible && tasks.length === 0 && !loading">
|
<nothing v-if="ctaVisible && tasks.length === 0 && !loading">
|
||||||
|
@ -246,7 +246,7 @@ function focusNewTaskInput() {
|
||||||
addTaskRef.value?.focusTaskInput()
|
addTaskRef.value?.focusTaskInput()
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTaskProject(task: ITask) {
|
function updateTaskList(task: ITask) {
|
||||||
if (isAlphabeticalSorting.value ) {
|
if (isAlphabeticalSorting.value ) {
|
||||||
// reload tasks with current filter and sorting
|
// reload tasks with current filter and sorting
|
||||||
loadTasks()
|
loadTasks()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user