-
Notifications
You must be signed in to change notification settings - Fork 92
fix: add alert when clicked on create pods and podsgroup #261
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 |
|---|---|---|
|
|
@@ -177,6 +177,11 @@ const Pods = () => { | |
| const toggleSortDirection = useCallback(() => { | ||
| setSortDirection((prev) => (prev === "asc" ? "desc" : "asc")); | ||
| }, []); | ||
|
|
||
| // For now, no creation dialog | ||
| const handleCreate = () => { | ||
| alert("Create Pod is not supported yet"); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| }; | ||
|
|
||
| return ( | ||
| <Box sx={{ bgcolor: "background.default", minHeight: "100vh", p: 3 }}> | ||
|
|
@@ -200,7 +205,7 @@ const Pods = () => { | |
| dialogTitle="Create a Pod" | ||
| dialogResourceNameLabel="Pod Name" | ||
| dialogResourceType="Pod" | ||
| onCreateClick={handleCreatePod} | ||
| onCreateDialogUnavailable={handleCreate} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By switching to |
||
| /> | ||
| </Box> | ||
| <PodsTable | ||
|
|
||
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 formatting in this block can be improved for better consistency and adherence to standard JavaScript style guides. Specifically, add a space after the
ifkeyword and remove the extra space before the semicolon in thereturnstatement.