From: John Molakvoæ (skjnldsv) Date: Wed, 4 Dec 2019 10:18:55 +0000 (+0100) Subject: Properly reload file list on share accept X-Git-Tag: v18.0.0beta1~13^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f3cdf7e4c1654bfa2807a284c5ccf14e161d3201;p=nextcloud-server.git Properly reload file list on share accept Signed-off-by: John Molakvoæ (skjnldsv) --- diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index d2a23283f12..c97faaa7041 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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));