Display a loading indicator while moving items

fixes #1006
This commit is contained in:
Marcel Klehr 2020-05-20 11:58:17 +02:00
parent 88d32dd23b
commit ba523ff9bf
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template>
<Modal v-if="showModal" :title="title" @close="onClose">
<div class="move-dialog">
<div v-if="!moving" class="move-dialog">
<TreeFolder
:folder="{
title: t('bookmarks', 'Root folder'),
@ -10,6 +10,7 @@
:show-children-default="true"
@select="onSelect" />
</div>
<div v-else class="icon-loading move-dialog" />
</Modal>
</template>
<script>
@ -30,6 +31,9 @@ export default {
selection() {
return this.$store.state.selection
},
moving() {
return this.$store.state.loading.moveSelection
},
allFolders() {
return this.filterFolders(this.$store.state.folders)
},

View File

@ -29,6 +29,7 @@ export default new Store({
saveBookmark: false,
createFolder: false,
saveFolder: false,
moveSelection: false,
},
error: null,
notification: null,