1
Fork 0
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:
Steffo 2021-10-20 22:51:51 +02:00
parent 0349e10c7a
commit 986652a4b1

View file

@ -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>
) )
} }