summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/sharedfilelist.js
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2020-10-11 15:19:30 +0200
committerRichard Steinmetz <richard@steinmetz.cloud>2020-10-13 14:12:42 +0200
commit89f7e2ab6409ef034ab6d4ce73f45517ae4f5d3f (patch)
tree16d5295e8e7f89ca64119ac339a0ddbb3c7801cc /apps/files_sharing/js/sharedfilelist.js
parentb6364cc483d7904ed0abdf272925d8376e885de0 (diff)
downloadnextcloud-server-89f7e2ab6409ef034ab6d4ce73f45517ae4f5d3f.tar.gz
nextcloud-server-89f7e2ab6409ef034ab6d4ce73f45517ae4f5d3f.zip
Indicate preview availability in share api responses
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps/files_sharing/js/sharedfilelist.js')
-rw-r--r--apps/files_sharing/js/sharedfilelist.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index f40a1f1a853..962f8a16915 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -353,6 +353,7 @@
id: share.file_source,
icon: OC.MimeType.getIconUrl(share.mimetype),
mimetype: share.mimetype,
+ hasPreview: share.has_preview,
tags: share.tags || []
}
if (share.item_type === 'folder') {