Skip to content

Commit

Permalink
fix: improved wording/tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
olensmar committed Nov 11, 2021
1 parent 42d5a86 commit 339a697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/organisms/ClustersPane/ClustersPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const ClustersPane = () => {
</StyledDiv>
<StyledDiv>
<HiddenInput type="file" onChange={onSelectFile} ref={fileInput} />
<StyledHeading>Select to retrieve resources from configured kubeconfig</StyledHeading>
<StyledHeading>Select context to use:</StyledHeading>
<StyledSelect
placeholder="Select a context"
disabled={(previewType === 'cluster' && previewLoader.isLoading) || isEditingDisabled}
Expand All @@ -192,7 +192,6 @@ const ClustersPane = () => {
/>
</StyledDiv>
<StyledDiv>
<StyledHeading>Select to retrieve resources from selected context</StyledHeading>
<Tooltip mouseEnterDelay={TOOLTIP_DELAY} title={ClusterModeTooltip} placement="right">
<StyledButton
type="primary"
Expand Down
2 changes: 1 addition & 1 deletion src/constants/tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const ClusterDiffDisabledTooltip = 'Browse for a folder to enable the Clu
export const ClusterDiffDisabledInClusterPreviewTooltip =
'Cluster Comparison is disabled while previewing Cluster resources';
export const BrowseKubeconfigTooltip = 'Browse for kubeconfig file';
export const ClusterModeTooltip = `Retrieve and show resources in configured cluster (${KEY_CTRL_CMD}+I)`;
export const ClusterModeTooltip = `Retrieve and show resources in selected context (${KEY_CTRL_CMD}+I)`;
export const KustomizationPreviewTooltip = 'Preview the output of this Kustomize file';
export const ExitKustomizationPreviewTooltip = 'Exit Kustomize preview (Escape)';
export const ReloadKustomizationPreviewTooltip = 'Reload the preview of this Kustomization';
Expand Down

0 comments on commit 339a697

Please sign in to comment.