Skip to content

Commit

Permalink
fix: merged main into branch
Browse files Browse the repository at this point in the history
  • Loading branch information
olensmar committed Mar 8, 2022
1 parent efdfca1 commit 372a401
Showing 1 changed file with 40 additions and 39 deletions.
79 changes: 40 additions & 39 deletions src/components/organisms/ActionsPane/ActionsPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,47 +451,48 @@ const ActionsPane: React.FC<IProps> = props => {
</Tooltip>
)}

<Tooltip
mouseEnterDelay={TOOLTIP_DELAY}
title={
selectedPath
? isHelmValuesFile(selectedPath)
? InstallValuesFileTooltip
: ApplyFileTooltip
: ApplyTooltip
}
placement="bottomLeft"
>
<Button
loading={Boolean(applyingResource)}
type="primary"
size="small"
ghost
onClick={applySelection}
disabled={
(!selectedResourceId && !selectedPath) ||
(selectedResource &&
!isKustomizationResource(selectedResource) &&
(isKustomizationPatch(selectedResource) || !knownResourceKinds.includes(selectedResource.kind)))
<Tooltip
mouseEnterDelay={TOOLTIP_DELAY}
title={
selectedPath
? isHelmValuesFile(selectedPath)
? InstallValuesFileTooltip
: ApplyFileTooltip
: ApplyTooltip
}
icon={<Icon name="kubernetes" />}
>
{selectedPath && isHelmValuesFile(selectedPath) ? 'Install' : 'Deploy'}
</Button>
</Tooltip>
<Tooltip mouseEnterDelay={TOOLTIP_DELAY} title={DiffTooltip} placement="bottomLeft">
<S.DiffButton
size="small"
type="primary"
ghost
onClick={diffSelectedResource}
disabled={isDiffButtonDisabled}
placement="bottomLeft"
>
Diff
</S.DiffButton>
</Tooltip>
</>
</TitleBar>
<Button
loading={Boolean(applyingResource)}
type="primary"
size="small"
ghost
onClick={applySelection}
disabled={
(!selectedResourceId && !selectedPath) ||
(selectedResource &&
!isKustomizationResource(selectedResource) &&
(isKustomizationPatch(selectedResource) || !knownResourceKinds.includes(selectedResource.kind)))
}
icon={<Icon name="kubernetes" />}
>
{selectedPath && isHelmValuesFile(selectedPath) ? 'Install' : 'Deploy'}
</Button>
</Tooltip>
<Tooltip mouseEnterDelay={TOOLTIP_DELAY} title={DiffTooltip} placement="bottomLeft">
<S.DiffButton
size="small"
type="primary"
ghost
onClick={diffSelectedResource}
disabled={isDiffButtonDisabled}
>
Diff
</S.DiffButton>
</Tooltip>
</>
</TitleBar>
)}
</div>

{!selectedPreviewConfigurationId ? (
Expand Down

0 comments on commit 372a401

Please sign in to comment.