Fleet UI: Disable gitops mode if in gitops mode (#44237)
This commit is contained in:
@@ -202,7 +202,13 @@ const Variables = () => {
|
||||
info="Add a custom variable to make it available in scripts and profiles."
|
||||
primaryButton={
|
||||
canEdit ? (
|
||||
<Button onClick={onClickAddSecret}>Add custom variable</Button>
|
||||
<GitOpsModeTooltipWrapper
|
||||
renderChildren={(disableChildren) => (
|
||||
<Button onClick={onClickAddSecret} disabled={disableChildren}>
|
||||
Add custom variable
|
||||
</Button>
|
||||
)}
|
||||
/>
|
||||
) : undefined
|
||||
}
|
||||
/>
|
||||
@@ -222,7 +228,6 @@ const Variables = () => {
|
||||
{renderPageDescription()}
|
||||
{canEdit && (
|
||||
<GitOpsModeTooltipWrapper
|
||||
entityType="secrets"
|
||||
renderChildren={(disableChildren) => (
|
||||
<Button
|
||||
variant="inverse"
|
||||
|
||||
Reference in New Issue
Block a user