-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Handle confirm deletes with multiple spaces (#1572)
Resolves: https://issues.redhat.com/browse/MTA-1725 When confirming the deletion of an entity by requiring the user to enter the name of the entity, the string check needs to ignore differences in white space. The entity name may contain multiple spaces between words, but not show the spaces when viewing the name outside of an input box. HTML normally collapses multiple spaces into a single space. Also if the confirming name gets an extra space typed, that can cause a hard to see string mismatch. Trimming and then collapsing multiple spaces into a single space before comparing the string avoids this problem. Signed-off-by: Scott J Dickerson <[email protected]>
- Loading branch information
Showing
3 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters