Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e8ac6c

Browse files
gcp-cherry-pick-bot[bot]BrunoQuaresmamatifali
authored
fix: don't show promote button for members (cherry-pick#17511) (#17513)
Co-authored-by: Bruno Quaresma <bruno@coder.com>Co-authored-by: M Atif Ali <atif@coder.com>fix: don't show promote button for members (#17511)Fix#15850
1 parentb8ffc29 commit1e8ac6c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎site/src/pages/TemplatePage/TemplateVersionsPage/VersionRow.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export const VersionRow: FC<VersionRowProps> = ({
3333
});
3434

3535
constjobStatus=version.job.status;
36-
constshowActions=onPromoteClick||onArchiveClick;
3736

3837
return(
3938
<TimelineEntry
@@ -106,7 +105,7 @@ export const VersionRow: FC<VersionRowProps> = ({
106105
</Pill>
107106
)}
108107

109-
{showActions&&jobStatus==="failed"?(
108+
{jobStatus==="failed"&&onArchiveClick&&(
110109
<Button
111110
css={styles.promoteButton}
112111
disabled={isActive||version.archived}
@@ -118,7 +117,9 @@ export const VersionRow: FC<VersionRowProps> = ({
118117
>
119118
Archive&hellip;
120119
</Button>
121-
) :(
120+
)}
121+
122+
{jobStatus==="succeeded"&&onPromoteClick&&(
122123
<Button
123124
css={styles.promoteButton}
124125
disabled={isActive||jobStatus!=="succeeded"}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp