Skip to content

Commit

Permalink
inverted the buttons on notebook server control panel (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlassak authored Sep 1, 2022
1 parent 7cf8b90 commit 7e0ad68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions backend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export type DashboardConfig = K8sResourceCommon & {
pvcSize?: string;
notebookNamespace?: string;
notebookTolerationSettings?: {
enabled: boolean,
key: string
}
enabled: boolean;
key: string;
};
};
};
};
Expand Down Expand Up @@ -56,7 +56,7 @@ export type NotebookSize = {
export type NotebookTolerationSettings = {
enabled: boolean;
key: string;
}
};

export type ClusterSettings = {
pvcSize: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ export const NotebookServer: React.FC = () => {
onNotebooksStop={onNotebooksStop}
/>
<ActionList>
<ActionListItem onClick={() => setNotebooksToStop([notebook])}>
<Button variant="primary">Stop notebook server</Button>
</ActionListItem>
<ActionListItem
onClick={() => {
if (notebook.metadata.annotations?.['opendatahub.io/link']) {
window.location.href = notebook.metadata.annotations['opendatahub.io/link'];
}
}}
>
<Button variant="secondary">Return to server</Button>
<Button variant="primary">Access notebook server</Button>
</ActionListItem>
<ActionListItem onClick={() => setNotebooksToStop([notebook])}>
<Button variant="secondary">Stop notebook server</Button>
</ActionListItem>
</ActionList>
</StackItem>
Expand Down

0 comments on commit 7e0ad68

Please sign in to comment.