Skip to content

Commit

Permalink
[Maps] unify apply global copy for consistency (elastic#111800) (elas…
Browse files Browse the repository at this point in the history
…tic#112338)

* [Maps] unify apply global copy for consistency

* clean up

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Nathan Reese <[email protected]>
  • Loading branch information
kibanamachine and nreese authored Sep 15, 2021
1 parent 8d2569c commit dcb61cb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface Props {
}

export function ForceRefreshCheckbox({ applyForceRefresh, setApplyForceRefresh }: Props) {
const onRespondToForceRefreshChange = (event: EuiSwitchEvent) => {
const onChange = (event: EuiSwitchEvent) => {
setApplyForceRefresh(event.target.checked);
};

Expand All @@ -24,15 +24,15 @@ export function ForceRefreshCheckbox({ applyForceRefresh, setApplyForceRefresh }
<EuiToolTip
position="top"
content={i18n.translate('xpack.maps.filterEditor.applyForceRefreshTooltip', {
defaultMessage: `When enabled, results are narrowed by search bar`,
defaultMessage: `When enabled, layer re-fetches data when automatic refresh fires and when "Refresh" is clicked.`,
})}
>
<EuiSwitch
label={i18n.translate('xpack.maps.filterEditor.applyForceRefreshLabel', {
defaultMessage: `Apply global refresh to layer data`,
})}
checked={applyForceRefresh}
onChange={onRespondToForceRefreshChange}
onChange={onChange}
data-test-subj="mapLayerPanelRespondToForceRefreshCheckbox"
compressed
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function GlobalTimeCheckbox({ applyGlobalTime, label, setApplyGlobalTime
<EuiToolTip
position="top"
content={i18n.translate('xpack.maps.filterEditor.applyGlobalTimeHelp', {
defaultMessage: 'When enabled, results narrowed by global time filter',
defaultMessage: 'When enabled, results narrowed by global time',
})}
>
<EuiSwitch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class FilterEditor extends Component<Props, State> {

<GlobalFilterCheckbox
label={i18n.translate('xpack.maps.filterEditor.applyGlobalQueryCheckboxLabel', {
defaultMessage: `Apply global filter to layer data`,
defaultMessage: `Apply global search to layer data`,
})}
applyGlobalQuery={this.props.layer.getSource().getApplyGlobalQuery()}
setApplyGlobalQuery={this._onApplyGlobalQueryChange}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class Join extends Component<Props, State> {
}
setApplyGlobalQuery={this._onApplyGlobalQueryChange}
label={i18n.translate('xpack.maps.layerPanel.join.applyGlobalQueryCheckboxLabel', {
defaultMessage: `Apply global filter to join`,
defaultMessage: `Apply global search to join`,
})}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ export class TOCEntryButton extends Component<Props, State> {
footnotes.push({
icon: <EuiIcon color="subdued" type="filter" size="s" />,
message: i18n.translate('xpack.maps.layer.isUsingSearchMsg', {
defaultMessage: 'Results narrowed by query and filters',
defaultMessage: 'Results narrowed by global search',
}),
});
}
if (this.state.isFilteredByGlobalTime) {
footnotes.push({
icon: <EuiIcon color="subdued" type="clock" size="s" />,
message: i18n.translate('xpack.maps.layer.isUsingTimeFilter', {
defaultMessage: 'Results narrowed by time filter',
defaultMessage: 'Results narrowed by global time',
}),
});
}
Expand Down

0 comments on commit dcb61cb

Please sign in to comment.