Skip to content

Commit 35c98b5

Browse files
committed
fix(ui): show Jupyter badge only after notebook is running (#416)
Closes #408
1 parent 77d55b7 commit 35c98b5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

reana-ui/src/actions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export function openInteractiveSession(id, options = {}) {
520520
"Success!",
521521
"The interactive session has been created. " +
522522
"However, it could take several minutes to start the Jupyter Notebook. " +
523-
"Click on the Jupyter logo to access it. " +
523+
"Click on the Jupyter notebook badge to access it. " +
524524
`${interactiveSessionInactivityWarning}`,
525525
),
526526
);

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)