File tree 1 file changed +4
-3
lines changed
site/src/pages/TemplatePage/TemplateVersionsPage
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ export const VersionRow: FC<VersionRowProps> = ({
33
33
} ) ;
34
34
35
35
const jobStatus = version . job . status ;
36
- const showActions = onPromoteClick || onArchiveClick ;
37
36
38
37
return (
39
38
< TimelineEntry
@@ -106,7 +105,7 @@ export const VersionRow: FC<VersionRowProps> = ({
106
105
</ Pill >
107
106
) }
108
107
109
- { showActions && jobStatus === "failed" ? (
108
+ { jobStatus === "failed" && onArchiveClick && (
110
109
< Button
111
110
css = { styles . promoteButton }
112
111
disabled = { isActive || version . archived }
@@ -118,7 +117,9 @@ export const VersionRow: FC<VersionRowProps> = ({
118
117
>
119
118
Archive…
120
119
</ Button >
121
- ) : (
120
+ ) }
121
+
122
+ { jobStatus === "succeeded" && onPromoteClick && (
122
123
< Button
123
124
css = { styles . promoteButton }
124
125
disabled = { isActive || jobStatus !== "succeeded" }
You can’t perform that action at this time.
0 commit comments