summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-08-20 16:28:03 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-08-20 16:31:50 +0000
commitbf37e4a7bd591f5de7464476a1b8794e83ab3931 (patch)
treee4513a4b3cdbc2a225d9296a8547ebab6964824e /apps
parent20aa6162397d3b50e9f5290ee3cdcca573856b23 (diff)
downloadnextcloud-server-bf37e4a7bd591f5de7464476a1b8794e83ab3931.tar.gz
nextcloud-server-bf37e4a7bd591f5de7464476a1b8794e83ab3931.zip
Remove encryption option for nextcloud external storage
Fixes #16017 Since it never worked we should not show it. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/js/settings.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index adf3f766202..49238daffd6 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -475,7 +475,9 @@ MountOptionsDropdown.prototype = {
}));
this.$el = $el;
- this.setOptions(mountOptions, visibleOptions);
+ var storage = $container[0].parentNode.className;
+
+ this.setOptions(mountOptions, visibleOptions, storage);
this.$el.appendTo($container);
MountOptionsDropdown._last = this;
@@ -523,7 +525,13 @@ MountOptionsDropdown.prototype = {
* @param {Object} options mount options
* @param {Array} visibleOptions enabled mount options
*/
- setOptions: function(options, visibleOptions) {
+ setOptions: function(options, visibleOptions, storage) {
+ if (storage === 'owncloud') {
+ var ind = visibleOptions.indexOf('encrypt');
+ if (ind > 0) {
+ visibleOptions.splice(ind, 1);
+ }
+ }
var $el = this.$el;
_.each(options, function(value, key) {
var $optionEl = $el.find('input, select').filterAttr('name', key);