summaryrefslogtreecommitdiffstats
path: root/apps/files/js/sidebarpreviewmanager.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 21:47:08 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-24 11:24:18 +0100
commitcda811b6b49d2925fa044b5c391cea27a9da8724 (patch)
tree2021b9a476835da490667437669f24a76d763936 /apps/files/js/sidebarpreviewmanager.js
parent0224c61530c2942549c277dae4e7e54bf8ad2328 (diff)
downloadnextcloud-server-cda811b6b49d2925fa044b5c391cea27a9da8724.tar.gz
nextcloud-server-cda811b6b49d2925fa044b5c391cea27a9da8724.zip
Make filelist and sidebar use the fileid preview endpoint
This makes sure the preview is cached even after rename! yay! Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/js/sidebarpreviewmanager.js')
-rw-r--r--apps/files/js/sidebarpreviewmanager.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/js/sidebarpreviewmanager.js b/apps/files/js/sidebarpreviewmanager.js
index 2cf4248897a..27ccd4fc405 100644
--- a/apps/files/js/sidebarpreviewmanager.js
+++ b/apps/files/js/sidebarpreviewmanager.js
@@ -92,6 +92,7 @@
};
this._fileList.lazyLoadPreview({
+ fileId: model.get('id'),
path: model.getFullPath(),
mime: model.get('mimetype'),
etag: model.get('etag'),