feat: replace our home-grown gantt implementation with ganttastic #2180

Merged
konrad merged 78 commits from feature/ganttastic into main 2022-10-27 16:03:27 +00:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 0a9588e097 - Show all commits

View File

@ -46,7 +46,7 @@
v-model="newTaskTitle"
/>
</transition>
<x-button @click="showCreateNewTask" :shadow="false" icon="plus">
<x-button @click="showCreateTaskOrCreate" :shadow="false" icon="plus">
{{ $t('task.new') }}
</x-button>
</form>
@ -195,13 +195,15 @@ const newTaskFieldActive = ref(false)
const newTaskTitleField = ref()
konrad marked this conversation as resolved Outdated
Add type: https://vuejs.org/guide/typescript/composition-api.html#typing-template-refs

Done.

Done.
const newTaskTitle = ref('')
function showCreateNewTask() {
function showCreateTaskOrCreate() {
if (!newTaskFieldActive.value) {
// Timeout to not send the form if the field isn't even shown
setTimeout(() => {
newTaskFieldActive.value = true
nextTick(() => newTaskTitleField.value.focus())
}, 100)
} else {
createTask()
}
}