Skip to content

Commit 07ca1a7

Browse files
committed
fix(ui): show jupyter badge only after the pod is running (reanahub#416)
Closes reanahub#408
1 parent 77d55b7 commit 07ca1a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

reana-ui/src/components/WorkflowActionsPopup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function WorkflowActionsPopup({ workflow, className }) {
3838
const isDeleted = status === "deleted";
3939
const isDeletedUsingWorkspace = isDeleted && size.raw > 0;
4040
const isRunning = status === "running";
41-
const isSessionOpen = sessionStatus === "created";
41+
const isSessionOpen = sessionStatus === "running";
4242

4343
let menuItems = [];
4444

reana-ui/src/components/WorkflowBadges.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function WorkflowBadges({ workflow }) {
2626
session_status: sessionStatus,
2727
} = workflow;
2828
const hasDiskUsage = size.raw > 0;
29-
const isSessionOpen = sessionStatus === "created";
29+
const isSessionOpen = sessionStatus === "running";
3030

3131
return (
3232
<div className={styles.badgesContainer}>

0 commit comments

Comments
 (0)