mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-21 22:34:21 +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>
|
||||
A <B>{notebook.value.is_running ? "running" : "stopped"}</B> notebook using <B><Code>{notebook.value.container_image}</Code></B>{locked_text}.
|
||||
</p>
|
||||
<Form>
|
||||
<Form.Row>
|
||||
<NotebookLabButton/>
|
||||
<NotebookLegacyButton/>
|
||||
</Form.Row>
|
||||
</Form>
|
||||
{
|
||||
notebook.value.is_running ? (
|
||||
<Form>
|
||||
<Form.Row>
|
||||
<NotebookLabButton/>
|
||||
<NotebookLegacyButton/>
|
||||
</Form.Row>
|
||||
</Form>
|
||||
) : null
|
||||
}
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue