Fix quota text not updated after copying or moving a file

Note that the quota may change too when files are moved if the file is
moved, for example, to or from a folder shared by other user.

Besides the quota the storage statistics are also updated, similar to
what is done when a file is deleted.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
pull/33134/head
Daniel Calviño Sánchez 4 years ago committed by backportbot-nextcloud[bot]
parent 117e4177f1
commit f19b44d595
  1. 10
      apps/files/js/filelist.js

@ -2630,7 +2630,10 @@
self.showFileBusyState($tr, false);
});
};
return this.reportOperationProgress(fileNames, moveFileFunction, callback);
return this.reportOperationProgress(fileNames, moveFileFunction, callback).then(function() {
self.updateStorageStatistics();
self.updateStorageQuotas();
});
},
_reflect: function (promise){
@ -2810,7 +2813,10 @@
}
});
};
return this.reportOperationProgress(fileNames, copyFileFunction, callback);
return this.reportOperationProgress(fileNames, copyFileFunction, callback).then(function() {
self.updateStorageStatistics();
self.updateStorageQuotas();
});
},
/**

Loading…
Cancel
Save