-
Notifications
You must be signed in to change notification settings - Fork 53
feat(frontend): optimize UX when no suitable Java is found, add default selection in download java modal #1376
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1419,6 +1419,10 @@ | |
| "MenuSelector": { | ||
| "selectedCount": "{{count}} selected" | ||
| }, | ||
| "NoSuitableJavaDialog": { | ||
| "title": "No suitable Java runtime found for this instance", | ||
| "body": "No suitable Java runtime is available for this instance. Click \"Confirm\" to open Java Management page and add or download Java manually." | ||
| }, | ||
|
Comment on lines
+1422
to
+1425
|
||
| "NotFoundPage": { | ||
| "text": "Page not found, redirecting to launch page in {{seconds}} seconds..." | ||
| }, | ||
|
|
||
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.
The useEffect hook references props.isOpen in its body but does not include it in the dependency array. According to React best practices and the pattern used consistently throughout the codebase (e.g., manual-add-java-path-modal.tsx:39-43, manage-skin-modal.tsx:88-93), props.isOpen should be included in the dependency array to ensure the effect runs when the modal opens. Please add props.isOpen to the dependency array.