Merge pull request #18222 from nextcloud/fix/files/reload-on-share-accept

Properly reload file list on share accept
This commit is contained in:
Roeland Jago Douma 2019-12-04 14:10:17 +01:00 committed by GitHub
commit 293585ec12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -364,6 +364,13 @@
this.$el.on('show', this._onResize);
// reload files list on share accept
$('body').on('OCA.Notification.Action', function(eventObject) {
if (eventObject.notification.app === 'files_sharing' && eventObject.action.type === 'POST') {
self.reload()
}
});
this.updateSearch();
this.$fileList.on('click','td.filename>a.name, td.filesize, td.date', _.bind(this._onClickFile, this));