summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-12-02 16:23:50 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-29 13:14:26 +0100
commit3c8aac3867f295992dbe05bdab155bbd3ef4978f (patch)
tree38867ce7a86f74e2612e906fcac97dd26cef7d56 /apps
parentb65a23ca4b41ee7ce6290eacde44caeb70a00b2e (diff)
downloadnextcloud-server-3c8aac3867f295992dbe05bdab155bbd3ef4978f.tar.gz
nextcloud-server-3c8aac3867f295992dbe05bdab155bbd3ef4978f.zip
Add mount option to disable sharing
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/js/settings.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 2f879e1c850..cd36b038caf 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -23,6 +23,10 @@ var MOUNT_OPTIONS_DROPDOWN_TEMPLATE =
' <label for="mountOptionsPreviews">{{t "files_external" "Enable previews"}}</label>' +
' </div>' +
' <div class="optionRow">' +
+ ' <input id="mountOptionsSharing" name="enable_sharing" type="checkbox" value="true" checked="checked"/>' +
+ ' <label for="mountOptionsSharing">{{t "files_external" "Enable sharing"}}</label>' +
+ ' </div>' +
+ ' <div class="optionRow">' +
' <label for="mountOptionsFilesystemCheck">{{t "files_external" "Check for changes"}}</label>' +
' <select id="mountOptionsFilesystemCheck" name="filesystem_check_changes" data-type="int">' +
' <option value="0">{{t "files_external" "Never"}}</option>' +
@@ -35,6 +39,7 @@ var MOUNT_OPTIONS_DROPDOWN_TEMPLATE =
templates therefore they are duplicated here
t("files_external", "Enable encryption")
t("files_external", "Enable previews")
+ t("files_external", "Enable sharing")
t("files_external", "Check for changes")
t("files_external", "Never")
t("files_external", "Once every direct access")
@@ -830,6 +835,7 @@ MountConfigListView.prototype = _.extend({
$tr.find('input.mountOptions').val(JSON.stringify({
'encrypt': true,
'previews': true,
+ 'enable_sharing': true,
'filesystem_check_changes': 1
}));
}
@@ -1172,7 +1178,7 @@ MountConfigListView.prototype = _.extend({
var storage = this.getStorageConfig($tr);
var $toggle = $tr.find('.mountOptionsToggle');
var dropDown = new MountOptionsDropdown();
- var enabledOptions = ['previews', 'filesystem_check_changes'];
+ var enabledOptions = ['previews', 'filesystem_check_changes', 'enable_sharing'];
if (this._encryptionEnabled) {
enabledOptions.push('encrypt');
}