1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 06:44:21 +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>
<Form> {
<Form.Row> notebook.value.is_running ? (
<NotebookLabButton/> <Form>
<NotebookLegacyButton/> <Form.Row>
</Form.Row> <NotebookLabButton/>
</Form> <NotebookLegacyButton/>
</Form.Row>
</Form>
) : null
}
</Box> </Box>
) )
} }