|
1 | 1 | import { styled } from "styled-components"; |
2 | 2 | import { VariantAnalysisStatus } from "../../variant-analysis/shared/variant-analysis"; |
3 | 3 | import { VscodeButton } from "@vscode-elements/react-elements"; |
| 4 | +import { isCanary } from "../../config"; |
4 | 5 |
|
5 | 6 | export type VariantAnalysisActionsProps = { |
6 | 7 | variantAnalysisStatus: VariantAnalysisStatus; |
@@ -70,19 +71,21 @@ export const VariantAnalysisActions = ({ |
70 | 71 | <Container> |
71 | 72 | {showResultActions && ( |
72 | 73 | <> |
73 | | - <Button |
74 | | - secondary |
75 | | - onClick={onViewAutofixesClick} |
76 | | - disabled={viewAutofixesDisabled} |
77 | | - > |
78 | | - {chooseText({ |
79 | | - hasSelectedRepositories, |
80 | | - hasFilteredRepositories, |
81 | | - normalText: "View Autofixes", |
82 | | - selectedText: "View Autofixes for selected results", |
83 | | - filteredText: "View Autofixes for filtered results", |
84 | | - })} |
85 | | - </Button> |
| 74 | + {isCanary() && ( |
| 75 | + <Button |
| 76 | + secondary |
| 77 | + onClick={onViewAutofixesClick} |
| 78 | + disabled={viewAutofixesDisabled} |
| 79 | + > |
| 80 | + {chooseText({ |
| 81 | + hasSelectedRepositories, |
| 82 | + hasFilteredRepositories, |
| 83 | + normalText: "View Autofixes", |
| 84 | + selectedText: "View Autofixes for selected results", |
| 85 | + filteredText: "View Autofixes for filtered results", |
| 86 | + })} |
| 87 | + </Button> |
| 88 | + )} |
86 | 89 | <Button |
87 | 90 | secondary |
88 | 91 | onClick={onCopyRepositoryListClick} |
|
0 commit comments