mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
🔧 Don't render the "Open notebook" if the notebook is not running
This commit is contained in:
parent
0349e10c7a
commit
986652a4b1
1 changed files with 10 additions and 6 deletions
|
@ -42,12 +42,16 @@ export function NotebookDescriptionBox(): JSX.Element | null {
|
||||||
<p>
|
<p>
|
||||||
A <B>{notebook.value.is_running ? "running" : "stopped"}</B> notebook using <B><Code>{notebook.value.container_image}</Code></B>{locked_text}.
|
A <B>{notebook.value.is_running ? "running" : "stopped"}</B> notebook using <B><Code>{notebook.value.container_image}</Code></B>{locked_text}.
|
||||||
</p>
|
</p>
|
||||||
|
{
|
||||||
|
notebook.value.is_running ? (
|
||||||
<Form>
|
<Form>
|
||||||
<Form.Row>
|
<Form.Row>
|
||||||
<NotebookLabButton/>
|
<NotebookLabButton/>
|
||||||
<NotebookLegacyButton/>
|
<NotebookLegacyButton/>
|
||||||
</Form.Row>
|
</Form.Row>
|
||||||
</Form>
|
</Form>
|
||||||
|
) : null
|
||||||
|
}
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue