-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-write disk add dialog to functional component
Split disk add dialog footer to new component. The main component was already too large, so splitting to increase readbility. This now allowed us to cleanup the logic for followup state updates, which are not done in useEffect hooks. Two small behavior changes were introduced: First, on the validation of the input form. Previously the 'custom path' error was introduced also before 'add' was clicked. Now, this behaves like all other form fields, and validates on user's first 'Add' click. Second the error messages were unified, so 'Disk failed to be attached' now writes to 'Disk failed to be added' This fixes the recursive setState (Fixes #1275)
- Loading branch information
1 parent
fa1632e
commit 9b49f32
Showing
7 changed files
with
440 additions
and
465 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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