Show a loading spinner when creating a new kanban task
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-11-28 15:44:48 +01:00
parent 1e72105635
commit 25bd9d17f9
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 5 deletions

View File

@ -154,15 +154,13 @@
</div>
<div class="bucket-footer" v-if="canWrite">
<div class="field" v-if="showNewTaskInput[bucket.id]">
<div class="control">
<div class="control" :class="{'is-loading': taskService.loading}">
<input
:class="{'is-loading': taskService.loading}"
class="input"
:disabled="taskService.loading"
@focusout="toggleShowNewTaskInput(bucket.id)"
@keyup.enter="addTaskToBucket(bucket.id)"
@keyup.esc="toggleShowNewTaskInput(bucket.id)"
class="input"
placeholder="Enter the new task text..."
type="text"
v-focus.always
@ -182,7 +180,7 @@
</span>
<span v-if="bucket.tasks.length === 0">
Add a task
</span>
</span>
<span v-else>
Add another task
</span>