-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate console error when adding user (#365)
* Eliminate console error when adding user dockstore/dockstore#1627 Toggling disabled on the input was causing the containing mat-form-field to generate the exception. I believe this is an Angular Material bug and the only fix I could figure out changes the UX a bit. Before you had to wait for the adding/removing a user operation to complete before you could start typing in a new value. Now you don't have to wait for the adding/removing a user to complete before you start typing in a new one. Although being "forced" into it, I think this behavior is OK; if you want to add a bunch of users, there's no reason to force you to wait for each one to complete. On top of that, in my tests, the operation is fairly fast anyway, so depending on network connection, you typically won't even be able to start typing in a new value before the previous operation has already completed. Also simplified controller by just having one add() method. Use enum instead of string from HTML.
- Loading branch information
Showing
2 changed files
with
16 additions
and
30 deletions.
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