Skip to content

Commit

Permalink
Combine auto apply strings into one
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos authored Oct 30, 2020
1 parent 7f90de5 commit 2d0d7dc
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
EuiFlexItem,
EuiButton,
EuiButtonEmpty,
EuiScreenReaderOnly,
EuiToolTip,
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
Expand Down Expand Up @@ -143,15 +142,12 @@ function DefaultEditorControls({
onClick={() => toggleAutoApply(!autoApplyEnabled)}
size="s"
minWidth={80}
aria-label={autoApplyEnabled ? i18n.translate('visDefaultEditor.sidebar.autoApplyChangesLabelOn', {
defaultMessage: 'Auto apply is on',
}) : autoApplyEnabled ? i18n.translate('visDefaultEditor.sidebar.autoApplyChangesLabelOff', {
defaultMessage: 'Auto apply is off',
})}
>
<EuiScreenReaderOnly>
<span>
{i18n.translate('visDefaultEditor.sidebar.autoApplyChangesLabel', {
defaultMessage: 'Auto apply is',
})}
</span>
</EuiScreenReaderOnly>

{autoApplyEnabled
? i18n.translate('visDefaultEditor.sidebar.autoApplyChangesOn', {
defaultMessage: 'On',
Expand Down

0 comments on commit 2d0d7dc

Please sign in to comment.