summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-03 14:57:14 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-09-03 14:57:14 +0100
commitf1e97433f7346ffcc4b0b2da45170d8ff25819ba (patch)
treef784fce96425b8533fb47ee466f950bfcdadc2b2 /apps
parente9e42fff61a922f11a3b1014d810562537950b6a (diff)
downloadnextcloud-server-f1e97433f7346ffcc4b0b2da45170d8ff25819ba.tar.gz
nextcloud-server-f1e97433f7346ffcc4b0b2da45170d8ff25819ba.zip
Set default mount options for external storages
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/js/settings.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index b542fe63d64..bf9981adabf 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -756,6 +756,13 @@ MountConfigListView.prototype = _.extend({
$tr.append(priorityEl);
$td.children().not('[type=hidden]').first().focus();
+ // FIXME default backend mount options
+ $tr.find('input.mountOptions').val(JSON.stringify({
+ 'encrypt': true,
+ 'previews': true,
+ 'filesystem_check_changes': 1
+ }));
+
$tr.find('td').last().attr('class', 'remove');
$tr.find('td.mountOptionsToggle').removeClass('hidden');
$tr.find('td').last().removeAttr('style');