Commit 3791c4e4 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

reinit de la selection du treeview après un move

parent 21a71d91
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -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">
@@ -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 = []
@@ -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){