Loading src/components/JamaActionsToolbar.vue +11 −4 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ /> </v-card-text> <v-card-actions> <v-btn color="secondary" @click.stop="moveDialog=false"> <v-btn color="secondary" @click.stop="cancelMove()"> Annuler </v-btn> <v-btn color="primary" :disabled="!moveDestId" @click.stop="moveSelection"> Loading Loading @@ -202,9 +202,12 @@ export default { }) }, moveSelection(){ //const targetCollectionId = this.$refs.treeViewSelect.selection[0]; cancelMove(){ this.moveDialog=false; this.$refs.treeViewSelect.selection=[]; }, moveSelection(){ this.$jamaConfirm(this.$t('move_confirm'), (res) => { if(res){ let collectionsIds = [] Loading @@ -219,10 +222,14 @@ export default { this.currentCollection ? this.currentCollection.id : null, this.moveDestId, collectionsIds, resourcesIds); resourcesIds).then(() => { this.$refs.treeViewSelect.selection=[]; this.$emit('items-moved');//need to fetch &reload current collection }); }}); this.moveDialog = false; }, sortOptionsClicked(type){ Loading Loading
src/components/JamaActionsToolbar.vue +11 −4 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ /> </v-card-text> <v-card-actions> <v-btn color="secondary" @click.stop="moveDialog=false"> <v-btn color="secondary" @click.stop="cancelMove()"> Annuler </v-btn> <v-btn color="primary" :disabled="!moveDestId" @click.stop="moveSelection"> Loading Loading @@ -202,9 +202,12 @@ export default { }) }, moveSelection(){ //const targetCollectionId = this.$refs.treeViewSelect.selection[0]; cancelMove(){ this.moveDialog=false; this.$refs.treeViewSelect.selection=[]; }, moveSelection(){ this.$jamaConfirm(this.$t('move_confirm'), (res) => { if(res){ let collectionsIds = [] Loading @@ -219,10 +222,14 @@ export default { this.currentCollection ? this.currentCollection.id : null, this.moveDestId, collectionsIds, resourcesIds); resourcesIds).then(() => { this.$refs.treeViewSelect.selection=[]; this.$emit('items-moved');//need to fetch &reload current collection }); }}); this.moveDialog = false; }, sortOptionsClicked(type){ Loading