Commit d02fda3d authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

force refresh resources when reload current collection.

parent 91341055
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -765,6 +765,8 @@ export default {
    },

    reloadCurrentCollection() {
      this.$store.commit('emptyResources');
      console.log("mptified");
      this.loadCollectionById(this.currentCollection.id);
    },

+4 −0
Original line number Diff line number Diff line
@@ -205,6 +205,10 @@ export default new Vuex.Store({
            }
        },

        emptyResources : (state) => {
          state.resources = [];
        },

        setCurrentStats: (state, stats) => (
            state.currentStats = stats
        ),
+4 −0
Original line number Diff line number Diff line
@@ -9,6 +9,10 @@ class DirectoryDropReader {
    }

    traverse(item) {
        if(!item) {
            console.info('null dropped item ignored');
            return;
        }
        this.files = [];
        let self = this;
        if(item.isFile){