Skip to content

Commit bbaf66b

Browse files
author
Yehudit Kerido
committed
feat(ws): Notebooks 2.0 // Frontend // Fetch workspaces
Signed-off-by: Yehudit Kerido <yehudit.kerido@nokia.com>
1 parent fac3032 commit bbaf66b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Binary file not shown.

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,19 @@ export const Workspaces: React.FunctionComponent = () => {
185185
const [activeSortDirection, setActiveSortDirection] = React.useState<'asc' | 'desc' | null>(null);
186186

187187
const getSortableRowValues = (workspace: Workspace): (string | number | undefined)[] => {
188-
const { name, kind, image, podConfig, state, homeVol, cpu, ram, lastActivity } = {
188+
const { redirectStatus, name, kind, image, podConfig, state, homeVol, cpu, ram, lastActivity } =
189+
{
190+
redirectStatus: '',
191+
name: workspace.name,
192+
kind: workspace.workspace_kind.name,
193+
image: workspace.pod_template.options.image_config.current.display_name,
194+
podConfig: workspace.pod_template.pod_config.current,
195+
state: workspace.state,
196+
homeVol: workspace.pod_template.volumes.home.pvc_name,
197+
cpu: getCpuValue(workspace),
198+
ram: getRamValue(workspace),
199+
lastActivity: workspace.activity.last_activity,
200+
};
189201
redirectStatus: '',
190202
name: workspace.name,
191203
kind: workspace.workspaceKind.name,

0 commit comments

Comments
 (0)