Skip to content

Commit

Permalink
fix(ui): show jupyter badge only after the pod is running (reanahub#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alputer committed Nov 18, 2024
1 parent 77d55b7 commit f534986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reana-ui/src/components/WorkflowActionsPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function WorkflowActionsPopup({ workflow, className }) {
const isDeleted = status === "deleted";
const isDeletedUsingWorkspace = isDeleted && size.raw > 0;
const isRunning = status === "running";
const isSessionOpen = sessionStatus === "created";
const isSessionOpen = sessionStatus === "Running";

let menuItems = [];

Expand Down
2 changes: 1 addition & 1 deletion reana-ui/src/components/WorkflowBadges.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function WorkflowBadges({ workflow }) {
session_status: sessionStatus,
} = workflow;
const hasDiskUsage = size.raw > 0;
const isSessionOpen = sessionStatus === "created";
const isSessionOpen = sessionStatus === "Running";

return (
<div className={styles.badgesContainer}>
Expand Down

0 comments on commit f534986

Please sign in to comment.