Permalink
Browse files

Fix Download Counter reset not properly displayed

  • Loading branch information...
1 parent 93422b9 commit 8282b277f903d7ecd037a78a0b79ede75073ecc9 @cdujeu cdujeu committed Sep 8, 2016
Showing with 5 additions and 2 deletions.
  1. +5 −2 core/src/plugins/action.share/res/react/model/ShareModel.js
@@ -612,11 +612,14 @@
});
}
- load(){
+ load(replaceCache = false){
if(this._status == 'loading') return;
this._setStatus('loading');
let cacheService = MetaCacheService.getInstance();
cacheService.registerMetaStream('action.share', MetaCacheService.EXPIRATION_LOCAL_NODE);
+ if(replaceCache){
+ cacheService.invalidateMetaForKeys('action.share', this._node.getPath());
+ }
let remoteLoader = function(transport){
if(transport.responseJSON){
@@ -754,7 +757,7 @@
};
ShareModel.prepareShareActionParameters(this.getNode(), params);
PydioApi.getClient().request(params, function(){
- this.load();
+ this.load(true);
callback();
}.bind(this));
}

0 comments on commit 8282b27

Please sign in to comment.