Hide button if download links are hidden for link shares

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-11-19 14:20:55 +01:00
parent 29be97100e
commit cd7094652f
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 4 additions and 1 deletions

View File

@ -139,7 +139,10 @@
if (transparent) {
this._showBackgroundToggle();
}
this.showButton('.downloadImage');
var hideDownload = $('#hideDownload').val();
if (hideDownload !== 'true') {
this.showButton('.downloadImage');
}
var canDelete = ((permissions & OC.PERMISSION_DELETE) !== 0);
var canShare = ((permissions & OC.PERMISSION_SHARE) !== 0);
if (!isPublic && canDelete) {