diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-08-02 20:23:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 20:23:21 +0200 |
commit | 01298cfa72105802533a2f0757c45a50c6d9bc67 (patch) | |
tree | 8928e01a103d88d039597dd7816cc1618ccc7b83 /apps/files_external/js/settings.js | |
parent | 9057621d64589d1a45040e9dfbf87dd908e9acbb (diff) | |
parent | 84f99db7ab96746b9dc3fa662c136912c34274eb (diff) | |
download | nextcloud-server-01298cfa72105802533a2f0757c45a50c6d9bc67.tar.gz nextcloud-server-01298cfa72105802533a2f0757c45a50c6d9bc67.zip |
Merge pull request #10480 from nextcloud/bugfix/10420/settings
Settings design polishing
Diffstat (limited to 'apps/files_external/js/settings.js')
-rw-r--r-- | apps/files_external/js/settings.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 38a77b59a14..b871fe2f743 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -54,6 +54,11 @@ var MOUNT_OPTIONS_DROPDOWN_TEMPLATE = ' <label for="mountOptionsReadOnly">{{t "files_external" "Read only"}}</label>' + ' </span>' + ' </li>' + + ' <li class="optionRow persistent">' + + ' <a href="#" class="menuitem remove icon-delete">' + + ' <span>{{t "files_external" "Delete"}}</span>' + + ' </a>' + + ' </li>' + ' </ul>'+ '</div>'; @@ -584,7 +589,7 @@ MountOptionsDropdown.prototype = { $el.find('.optionRow').each(function(i, row){ var $row = $(row); var optionId = $row.find('input, select').attr('name'); - if (visibleOptions.indexOf(optionId) === -1) { + if (visibleOptions.indexOf(optionId) === -1 && !$row.hasClass('persistent')) { $row.hide(); } else { $row.show(); @@ -734,7 +739,7 @@ MountConfigListView.prototype = _.extend({ self.recheckStorageConfig($(this).closest('tr')); }); - this.$el.on('click', 'td.remove>.icon-delete', function() { + this.$el.on('click', 'td.mountOptionsToggle .icon-delete', function() { self.deleteStorageConfig($(this).closest('tr')); }); @@ -742,7 +747,7 @@ MountConfigListView.prototype = _.extend({ self.saveStorageConfig($(this).closest('tr')); }); - this.$el.on('click', 'td.mountOptionsToggle>.icon-settings-dark', function() { + this.$el.on('click', 'td.mountOptionsToggle>.icon-more', function() { self._showMountOptionsDropdown($(this).closest('tr')); }); @@ -1311,7 +1316,8 @@ MountConfigListView.prototype = _.extend({ 'filesystem_check_changes', 'enable_sharing', 'encoding_compatibility', - 'readonly' + 'readonly', + 'delete' ]; if (this._encryptionEnabled) { visibleOptions.push('encrypt'); |