Browse Source

Improve the share link password error feedback with a red border

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/15123/head
Christoph Wurst 7 years ago
parent
commit
410aacae60
No known key found for this signature in database GPG Key ID: CC42AC2A7F0E56D8
  1. 2
      apps/files_sharing/js/dist/additionalScripts.js
  2. 2
      apps/files_sharing/js/dist/additionalScripts.js.map
  3. 6
      apps/files_sharing/src/style/sharetabview.scss
  4. 2
      core/js/dist/share_backend.js
  5. 2
      core/js/dist/share_backend.js.map
  6. 4
      core/js/sharedialoglinkshareview.js

2
apps/files_sharing/js/dist/additionalScripts.js
File diff suppressed because it is too large
View File

2
apps/files_sharing/js/dist/additionalScripts.js.map
File diff suppressed because it is too large
View File

6
apps/files_sharing/src/style/sharetabview.scss

@ -73,6 +73,12 @@
}
.popovermenu {
.linkPassMenu {
input.error {
border-color: var(--color-error) !important;
&[type="submit"] {
border-left: none;
}
}
.share-pass-submit {
width: auto !important;
}

2
core/js/dist/share_backend.js
File diff suppressed because it is too large
View File

2
core/js/dist/share_backend.js.map
File diff suppressed because it is too large
View File

4
core/js/sharedialoglinkshareview.js

@ -352,6 +352,7 @@
}
var $input = $li.find('.linkPassText');
$input.removeClass('error');
$input.parent().find('input').removeClass('error');
var password = $input.val();
if ($li.find('.linkPassText').attr('placeholder') === PASSWORD_PLACEHOLDER_MESSAGE_OPTIONAL) {
@ -380,6 +381,9 @@
$loading.removeClass('inlineblock').addClass('hidden');
},
error: function(model, msg) {
// Add visual feedback to both the input and the submit button
$input.parent().find('input').addClass('error');
// destroy old tooltips
var $container = $input.parent();
$container.tooltip('destroy');

Loading…
Cancel
Save