Make sure all popups & dropdowns are animated
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2021-01-23 18:54:22 +01:00
parent a4fb3e19be
commit 0d64506d73
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
10 changed files with 276 additions and 252 deletions

View File

@ -97,6 +97,7 @@
</table>
</div>
<transition name="modal">
<modal
@close="showDeleteModal = false"
@submit="remove()"
@ -110,6 +111,7 @@
<b>This CANNOT BE UNDONE!</b>
</p>
</modal>
</transition>
</card>
</template>

View File

@ -105,6 +105,7 @@
</tbody>
</table>
<transition name="modal">
<modal
@close="showDeleteModal = false"
@submit="deleteSharable()"
@ -119,6 +120,7 @@
<b>This CANNOT BE UNDONE!</b>
</p>
</modal>
</transition>
</card>
</template>

View File

@ -100,6 +100,7 @@
</div>
<!-- Delete modal -->
<transition name="modal">
<modal
@close="showDeleteModal = false"
v-if="showDeleteModal"
@ -112,6 +113,7 @@
<b>This CANNOT BE UNDONE!</b>
</p>
</modal>
</transition>
<transition name="modal">
<modal

View File

@ -140,6 +140,8 @@
</div>
</div>
</div>
<transition name="modal">
<modal
@close="showDeleteModal = false"
@submit="deleteComment()"
@ -151,6 +153,7 @@
<b>CANNOT BE UNDONE!</b>
</p>
</modal>
</transition>
</div>
</template>

View File

@ -88,6 +88,7 @@
</p>
<!-- Delete modal -->
<transition name="modal">
<modal
@close="showDeleteModal = false"
@submit="removeTaskRelation()"
@ -96,6 +97,7 @@
<p slot="text">Are you sure you want to delete this task relation?<br/>
<b>This CANNOT BE UNDONE!</b></p>
</modal>
</transition>
</div>
</template>

View File

@ -128,6 +128,7 @@
<link-sharing :list-id="$route.params.id" v-if="linkSharingEnabled"/>
<transition name="modal">
<modal
@close="showDeleteModal = false"
@submit="deleteList()"
@ -136,6 +137,7 @@
<p slot="text">Are you sure you want to delete this list and all of its contents?
<br/>This includes all tasks and <b>CANNOT BE UNDONE!</b></p>
</modal>
</transition>
</div>
</template>

View File

@ -33,8 +33,7 @@
{{ bucket.tasks.length }}/{{ bucket.limit }}
</span>
<div
:class="{ 'is-active': bucketOptionsDropDownActive[bucket.id] }"
class="dropdown is-right options"
class="dropdown is-right is-active options"
v-if="canWrite"
>
<div @click.stop="toggleBucketDropdown(bucket.id)" class="dropdown-trigger">
@ -42,7 +41,8 @@
<icon icon="ellipsis-v"/>
</span>
</div>
<div class="dropdown-menu" role="menu">
<transition name="fade">
<div class="dropdown-menu" role="menu" v-if="bucketOptionsDropDownActive[bucket.id]">
<div class="dropdown-content">
<a
@click.stop="showSetLimitInput = true"
@ -81,6 +81,7 @@
</a>
</div>
</div>
</transition>
</div>
</div>
<div :ref="`tasks-container${bucket.id}`" class="tasks">
@ -241,6 +242,7 @@
<router-view/>
</transition>
<transition name="modal">
<modal
@close="showBucketDeleteModal = false"
@submit="deleteBucket()"
@ -251,7 +253,7 @@
This will not delete any tasks but move them into the default bucket.
</p>
</modal>
</transition>
</div>
</template>
@ -448,8 +450,9 @@ export default {
this.$set(this.showNewTaskInput, bucket, !this.showNewTaskInput[bucket])
},
toggleBucketDropdown(bucketId) {
const oldState = this.bucketOptionsDropDownActive[bucketId]
this.closeBucketDropdowns() // Close all eventually open dropdowns
this.$set(this.bucketOptionsDropDownActive, bucketId, !this.bucketOptionsDropDownActive[bucketId])
this.$set(this.bucketOptionsDropDownActive, bucketId, !oldState)
},
closeBucketDropdowns() {
this.showSetLimitInput = false

View File

@ -86,6 +86,7 @@
shareType="team"
type="namespace"/>
<transition name="modal">
<modal
@close="showDeleteModal = false"
v-if="showDeleteModal"
@ -94,6 +95,7 @@
<p slot="text">Are you sure you want to delete this namespace and all of its contents?
<br/>This includes lists & tasks and <b>CANNOT BE UNDONE!</b></p>
</modal>
</transition>
</div>
</template>

View File

@ -382,6 +382,7 @@
</div>
</div>
<transition name="modal">
<modal
@close="showDeleteModal = false"
@submit="deleteTask()"
@ -393,6 +394,7 @@
<b>cannot be undone!</b>
</p>
</modal>
</transition>
</div>
</template>

View File

@ -134,6 +134,7 @@
</card>
<!-- Team delete modal -->
<transition name="modal">
<modal
@close="showDeleteModal = false"
@submit="deleteTeam()"
@ -148,7 +149,9 @@
<b>This CANNOT BE UNDONE!</b>
</p>
</modal>
</transition>
<!-- User delete modal -->
<transition name="modal">
<modal
@close="showUserDeleteModal = false"
@submit="deleteUser()"
@ -162,6 +165,7 @@
<b>This CANNOT BE UNDONE!</b>
</p>
</modal>
</transition>
</div>
</template>