-
Notifications
You must be signed in to change notification settings - Fork 39
Feature/finished/iia 1896 added confirm reset dialog #537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/finished/iia 1896 added confirm reset dialog #537
Conversation
…existing clear confirmation dialog
bhharsh13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small text fix. Rest looks good to me
| doTheClearOrResetForm(); | ||
| ConfirmationDialogController.showConfirmationDialog(this.cancelButton, | ||
| "Confirm Reset Form", | ||
| "You're changes will be lost if you reset the form. Are you sure you want to continue?") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requires correction in the message displayed - Your
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requires correction in the message displayed - Your
done
bhharsh13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
dholubek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had one minor request, but looks fine to me.
| /** | ||
| * Creates the dialog, providing the CompletableFuture that provides the modal behavior of the dialog. | ||
| * @param parentNode The node to start at to determine the topmost Pane, which is required for the GlassPane | ||
| * @return CompletableFuture with a Boolean type, Boolean value of true is returned when the confirm button is pressed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add the other two method arguments to the javadoc also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add the other two method arguments to the javadoc also?
done
swaroopsalvi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have minor comments.
|
|
||
| final JFXNode<Pane, ConfirmClearDialogController> githubInfoNode = FXMLMvvmLoader | ||
| .make(ConfirmClearDialogController.class.getResource("confirm-clear-dialog.fxml")); | ||
| final JFXNode<Pane, ConfirmationDialogController> githubInfoNode = FXMLMvvmLoader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this named as githubInfoNode ? shouldn't it be javaFxNode instead ? Can we change this variable name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was from copy and paste. Renamed to confDialogNode.
| } else { | ||
| doTheClearOrResetForm(); | ||
| ConfirmationDialogController.showConfirmationDialog(this.cancelButton, | ||
| "Confirm Reset Form", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency in code, can we declare the text as final like we did for CLEAR ? or make both local to the if -else conditions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chose not to use static final here because this text is only used in one place for reset.
The clear text for title and message are used in two places in the code, so static final is necessary to use the same text in both places.
dholubek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
Jira ticket: https://ikmdev.atlassian.net/browse/IIA-1896
Summary of changes:
Recommend expanding on this an adding a refactor story to create a common, global, dialog class that is responsible for creating the standard Komet application dialog which uses the GlassPane.
Before change:
No Confirm Reset dialog.
After change:
Confirm Reset dialog is displayed.