From ab684934ea891348329e9312c2220a4911736df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Wed, 30 Jan 2019 00:07:31 +0100 Subject: [PATCH 1/3] Remove unused parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Calviño Sánchez --- core/js/sharedialoglinkshareview.js | 1 - 1 file changed, 1 deletion(-) diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index 4d513bcee0100..62b79c5aecef4 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -644,7 +644,6 @@ passwordLabel: t('core', 'Password'), passwordPlaceholder: isPasswordSet ? PASSWORD_PLACEHOLDER : PASSWORD_PLACEHOLDER_MESSAGE, passwordPlaceholderInitial: passwordPlaceholderInitial, - showPasswordCheckBox: showPasswordCheckBox, isPasswordEnforced: isPasswordEnforced, }); From 355edcee74cc304ee124c6f68684007f5cc6ebe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Wed, 30 Jan 2019 00:10:03 +0100 Subject: [PATCH 2/3] Fix updating the password of a link share when passwords are enforced MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The password input was shown in the popup menu when passwords were not enforced, or when they were enforced but no password was set, which prevented updating/changing the password once set. As the popover menu is shown only when the share is a link share, and the password input should be shown too when password are enforced and a password is set no condition is needed, so now the password input is always shown. Signed-off-by: Daniel Calviño Sánchez --- core/js/sharedialoglinkshareview.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index 62b79c5aecef4..801f245f6e876 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -85,7 +85,6 @@ ' ' + ' ' + '{{/if}}' + - '{{#if showPasswordCheckBox}}' + '
  • ' + ' ' + @@ -96,7 +95,6 @@ ' ' + ' ' + '
  • ' + - '{{/if}}' + '
  • ' + ' ' + ' Date: Wed, 30 Jan 2019 00:16:50 +0100 Subject: [PATCH 3/3] Fix template format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Calviño Sánchez --- core/js/sharedialoglinkshareview.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index 801f245f6e876..bb1dcf2b2bd2b 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -85,16 +85,20 @@ ' ' + '
  • ' + '{{/if}}' + - '
  • ' + + '
  • ' + + ' ' + ' ' + ' ' + - '
  • ' + - '
  • ' + - ' ' + - ' ' + - ' ' + - '
  • ' + + ' ' + + '' + + '
  • ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + '
  • ' + '
  • ' + ' ' + '