From 986652a4b1b1fb86113f8730091c61f67b360e47 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 20 Oct 2021 22:51:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Don't=20render=20the=20"Open=20n?= =?UTF-8?q?otebook"=20if=20the=20notebook=20is=20not=20running?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notebook/NotebookDescriptionBox.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/notebook/NotebookDescriptionBox.tsx b/frontend/src/components/notebook/NotebookDescriptionBox.tsx index 962396f..68ab331 100644 --- a/frontend/src/components/notebook/NotebookDescriptionBox.tsx +++ b/frontend/src/components/notebook/NotebookDescriptionBox.tsx @@ -42,12 +42,16 @@ export function NotebookDescriptionBox(): JSX.Element | null {

A {notebook.value.is_running ? "running" : "stopped"} notebook using {notebook.value.container_image}{locked_text}.

-
- - - - -
+ { + notebook.value.is_running ? ( +
+ + + + +
+ ) : null + } ) }