Skip to content

Commit 23fed9c

Browse files
thaorellBhakti Narvekar
authored andcommitted
feat(ws): Make Create Workspace Kind button visible (kubeflow#466)
Signed-off-by: Charles Thao <[email protected]>
1 parent 6ba18c0 commit 23fed9c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

workspaces/frontend/src/app/pages/WorkspaceKinds/WorkspaceKinds.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ export const WorkspaceKinds: React.FunctionComponent = () => {
6767
);
6868

6969
const navigate = useTypedNavigate();
70-
// TODO: Uncomment when WorkspaceKindForm is complete
71-
// const createWorkspaceKind = useCallback(() => {
72-
// navigate('workspaceKindCreate');
73-
// }, [navigate]);
70+
const createWorkspaceKind = useCallback(() => {
71+
navigate('workspaceKindCreate');
72+
}, [navigate]);
7473
const [workspaceKinds, workspaceKindsLoaded, workspaceKindsError] = useWorkspaceKinds();
7574
const workspaceCountPerKind = useWorkspaceCountPerKind();
7675
const [selectedWorkspaceKind, setSelectedWorkspaceKind] = useState<WorkspaceKind | null>(null);
@@ -523,11 +522,12 @@ export const WorkspaceKinds: React.FunctionComponent = () => {
523522
>
524523
{statusSelect}
525524
</ToolbarFilter>
525+
<ToolbarItem>
526+
<Button variant="primary" ouiaId="Primary" onClick={createWorkspaceKind}>
527+
Create Workspace Kind
528+
</Button>
529+
</ToolbarItem>
526530
</ToolbarGroup>
527-
{/* //TODO: Uncomment when WorkspaceKind Form is finished
528-
<Button variant="primary" ouiaId="Primary" onClick={createWorkspaceKind}>
529-
Create Workspace Kind
530-
</Button> */}
531531
</ToolbarToggleGroup>
532532
</ToolbarContent>
533533
</Toolbar>

0 commit comments

Comments
 (0)