Merge pull request #18222 from nextcloud/fix/files/reload-on-share-accept
Properly reload file list on share accept
This commit is contained in:
commit
293585ec12
|
@ -364,6 +364,13 @@
|
||||||
|
|
||||||
this.$el.on('show', this._onResize);
|
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.updateSearch();
|
||||||
|
|
||||||
this.$fileList.on('click','td.filename>a.name, td.filesize, td.date', _.bind(this._onClickFile, this));
|
this.$fileList.on('click','td.filename>a.name, td.filesize, td.date', _.bind(this._onClickFile, this));
|
||||||
|
|
Loading…
Reference in New Issue