Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const VersionRow: FC<VersionRowProps> = ({
});

const jobStatus = version.job.status;
const showActions = onPromoteClick || onArchiveClick;

return (
<TimelineEntry
Expand Down Expand Up @@ -106,7 +105,7 @@ export const VersionRow: FC<VersionRowProps> = ({
</Pill>
)}

{showActions && jobStatus === "failed" ? (
{jobStatus === "failed" && onArchiveClick && (
<Button
css={styles.promoteButton}
disabled={isActive || version.archived}
Expand All @@ -118,7 +117,9 @@ export const VersionRow: FC<VersionRowProps> = ({
>
Archive&hellip;
</Button>
) : (
)}

{jobStatus === "succeeded" && onPromoteClick && (
<Button
css={styles.promoteButton}
disabled={isActive || jobStatus !== "succeeded"}
Expand Down
Loading