aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-03-13 12:49:11 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-13 12:49:11 +0100
commit34c8b1ac7732b4502beebea0dfeeaa8bac225550 (patch)
tree6fbcb5c17781157bf14afe141b9738814db393c5 /apps/files_external/js
parent680ec056dc8c4fb84b8300967bcc12db2a57f225 (diff)
downloadnextcloud-server-34c8b1ac7732b4502beebea0dfeeaa8bac225550.tar.gz
nextcloud-server-34c8b1ac7732b4502beebea0dfeeaa8bac225550.zip
Mount options for ext storage are now passed around
The mount options are now passed to the UI and stored in a hidden field. The ext storage controllers and services also know how to load/save them from the legacy config.
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/settings.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 44488db4bc3..ef64d087884 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -195,6 +195,13 @@ StorageConfig.prototype = {
backendOptions: null,
/**
+ * Mount-specific options
+ *
+ * @type Object.<string,object>
+ */
+ mountOptions: null,
+
+ /**
* Creates or saves the storage.
*
* @param {Function} [options.success] success callback, receives result as argument
@@ -237,6 +244,9 @@ StorageConfig.prototype = {
if (this.id) {
data.id = this.id;
}
+ if (this.mountOptions) {
+ data.mountOptions = this.mountOptions;
+ }
return data;
},
@@ -641,6 +651,11 @@ MountConfigListView.prototype = {
storage.priority = $tr.find('input.priority').val();
}
+ var mountOptions = $tr.find('input.mountOptions').val();
+ if (mountOptions) {
+ storage.mountOptions = JSON.parse(mountOptions);
+ }
+
return storage;
},