diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-12-04 14:10:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-04 14:10:17 +0100 |
commit | 293585ec12b5fcfd028d5e9835cfc144b98dcaf3 (patch) | |
tree | 5c6652be74f9c0d6328c9cc432a6e53c85b25822 /apps/files | |
parent | 50985e54612d7a3a0917e2772afde504ae3b67f0 (diff) | |
parent | f3cdf7e4c1654bfa2807a284c5ccf14e161d3201 (diff) | |
download | nextcloud-server-293585ec12b5fcfd028d5e9835cfc144b98dcaf3.tar.gz nextcloud-server-293585ec12b5fcfd028d5e9835cfc144b98dcaf3.zip |
Merge pull request #18222 from nextcloud/fix/files/reload-on-share-accept
Properly reload file list on share accept
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/filelist.js | 7 |
1 files changed, 7 insertions, 0 deletions
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)); |