From 6ee9a2b35bf1dee8e64b9d7b1d86766b6505b3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 27 Feb 2018 13:05:01 +0100 Subject: [PATCH] fixup! Fixed tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files_external/css/settings.scss | 4 ---- apps/files_external/js/settings.js | 17 +++++++++-------- apps/files_external/tests/js/settingsSpec.js | 2 +- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/apps/files_external/css/settings.scss b/apps/files_external/css/settings.scss index 09beaf1205..0f52ed3b2a 100644 --- a/apps/files_external/css/settings.scss +++ b/apps/files_external/css/settings.scss @@ -125,10 +125,6 @@ td.mountPoint, td.backend { width:160px; } width: auto; } -#externalStorage .mountOptionsDropdown { - margin-right: 40px; -} - .nav-icon-external-storage { background-image: url('../img/app-dark.svg?v=1'); } diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 0550cb04d8..99ee83d8a2 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -13,26 +13,27 @@ // TODO: move to a separate file var MOUNT_OPTIONS_DROPDOWN_TEMPLATE = '
'+ + // FIXME: options are hard-coded for now '
    '+ - '
  • '+ + '
  • '+ ' '+ ' '+ ' '+ ' '+ '
  • '+ - '
  • '+ + '
  • '+ ' '+ ' '+ ' '+ ' '+ '
  • '+ - '
  • '+ + '
  • '+ ' '+ ' '+ ' '+ ' '+ '
  • '+ - '
  • '+ + '
  • '+ ' '+ ' '+ ' '+ ' '+ '
  • '+ - '
  • '+ + '
  • '+ ' '+ ' '+ ' '+ @@ -1303,9 +1304,9 @@ MountConfigListView.prototype = _.extend({ 'enable_sharing', 'encoding_compatibility' ]; - if (this._encryptionEnabled) { - visibleOptions.push('encrypt'); - } + // if (this._encryptionEnabled) { + // visibleOptions.push('encrypt'); + // } dropDown.show($toggle, storage.mountOptions || [], visibleOptions); $('body').on('mouseup.mountOptionsDropdown', function(event) { var $target = $(event.target); diff --git a/apps/files_external/tests/js/settingsSpec.js b/apps/files_external/tests/js/settingsSpec.js index d68b2a5dd8..56bdcff834 100644 --- a/apps/files_external/tests/js/settingsSpec.js +++ b/apps/files_external/tests/js/settingsSpec.js @@ -213,7 +213,7 @@ describe('OCA.External.Settings tests', function() { expect($mountOptionsField.length).toEqual(1); $mountOptionsField.val(JSON.stringify({previews:true})); - var $saveButton = $tr.find('td.save .icon-save'); + var $saveButton = $tr.find('td.save .icon-checkmark'); $saveButton.click(); expect(fakeServer.requests.length).toEqual(1);