Fleet UI: Disable gitops mode if in gitops mode (#44237)

This commit is contained in:
RachelElysia
2026-04-27 16:16:15 -04:00
committed by GitHub
parent b471e24cd2
commit 72f6d82e3f
@@ -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"