diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-11-19 14:19:42 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-11-20 19:46:35 +0100 |
commit | fb8aa31dbf961d23f508eecf1cb44c7dbbac1d70 (patch) | |
tree | 02b4da201381895dba656b9b61cf65f6a3a5cdf7 /core/js | |
parent | 1bf742c462b238f441d1a6f115a3f489c98f8bb4 (diff) | |
download | nextcloud-server-fb8aa31dbf961d23f508eecf1cb44c7dbbac1d70.tar.gz nextcloud-server-fb8aa31dbf961d23f508eecf1cb44c7dbbac1d70.zip |
Allow to hide download option for folders shared by link
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/share/sharedialoglinkshareview_popover_menu.handlebars | 2 | ||||
-rw-r--r-- | core/js/sharedialoglinkshareview.js | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/core/js/share/sharedialoglinkshareview_popover_menu.handlebars b/core/js/share/sharedialoglinkshareview_popover_menu.handlebars index 3f47f62d68a..9c715c7f4ee 100644 --- a/core/js/share/sharedialoglinkshareview_popover_menu.handlebars +++ b/core/js/share/sharedialoglinkshareview_popover_menu.handlebars @@ -37,7 +37,6 @@ </span> </li> {{/if}} - {{#if showHideDownloadCheckbox}} <li> <span class="menuitem"> <span class="icon-loading-small hidden"></span> @@ -46,7 +45,6 @@ <label for="sharingDialogHideDownload-{{cid}}">{{hideDownloadLabel}}</label> </span> </li> - {{/if}} {{#if showPasswordCheckBox}} <li> <span class="menuitem"> diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index a28b05aa75a..989c10c2c57 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -868,7 +868,6 @@ var isTalkEnabled = oc_appswebroots['spreed'] !== undefined; var sendPasswordByTalk = share.sendPasswordByTalk; - var showHideDownloadCheckbox = !this.model.isFolder(); var hideDownload = share.hideDownload; var maxDate = null; @@ -905,7 +904,6 @@ shareNote: share.note, hasNote: share.note !== '', maxDate: maxDate, - showHideDownloadCheckbox: showHideDownloadCheckbox, hideDownload: hideDownload, isExpirationEnforced: isExpirationEnforced, } |