From f3cdf7e4c1654bfa2807a284c5ccf14e161d3201 Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 4 Dec 2019 11:18:55 +0100 Subject: [PATCH] Properly reload file list on share accept MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files/js/filelist.js | 7 +++++++ 1 file changed, 7 insertions(+) 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)); -- 2.39.5