Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Watcher] Add tooltips back to creation buttons on watch list page. #35385

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
EuiSpacer,
EuiText,
EuiTitle,
EuiToolTip,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage, InjectedIntl, injectI18n } from '@kbn/i18n/react';
Expand Down Expand Up @@ -222,27 +223,47 @@ const WatchListUi = ({ intl }: { intl: InjectedIntl }) => {
<EuiSpacer />
<EuiFlexGroup gutterSize="m">
<EuiFlexItem grow={false}>
<EuiButton
data-test-subj="createThresholdAlertButton"
href="#/management/elasticsearch/watcher/watches/new-watch/threshold"
<EuiToolTip
position="top"
content={
<FormattedMessage
id="xpack.watcher.sections.watchList.createThresholdAlertButtonTooltip"
defaultMessage="Send an alert on a specific condition"
/>
}
>
<FormattedMessage
id="xpack.watcher.sections.watchList.createThresholdAlertButtonLabel"
defaultMessage="Create threshold alert"
/>
</EuiButton>
<EuiButton
data-test-subj="createThresholdAlertButton"
href="#/management/elasticsearch/watcher/watches/new-watch/threshold"
>
<FormattedMessage
id="xpack.watcher.sections.watchList.createThresholdAlertButtonLabel"
defaultMessage="Create threshold alert"
/>
</EuiButton>
</EuiToolTip>
</EuiFlexItem>

<EuiFlexItem grow={false}>
<EuiButton
data-test-subj="createAdvancedWatchButton"
href="#/management/elasticsearch/watcher/watches/new-watch/json"
<EuiToolTip
position="top"
content={
<FormattedMessage
id="xpack.watcher.sections.watchList.createAdvancedWatchTooltip"
defaultMessage="Set up a custom watch in raw JSON"
/>
}
>
<FormattedMessage
id="xpack.watcher.sections.watchList.createAdvancedWatchButtonLabel"
defaultMessage="Create advanced watch"
/>
</EuiButton>
<EuiButton
data-test-subj="createAdvancedWatchButton"
href="#/management/elasticsearch/watcher/watches/new-watch/json"
>
<FormattedMessage
id="xpack.watcher.sections.watchList.createAdvancedWatchButtonLabel"
defaultMessage="Create advanced watch"
/>
</EuiButton>
</EuiToolTip>
</EuiFlexItem>
</EuiFlexGroup>
<EuiSpacer />
Expand Down