Minor changes to text on Alerting in Stack Monitoring application (#38388)

* Minor changes to text.

* "Basic" is a proper name, so it should be capatalized.

* Cluster Alerts are plural.

* Fix tests to align with help text changes

* Missed one test file
This commit is contained in:
Mike Place 2019-06-13 14:46:36 +02:00 committed by GitHub
parent 5f3f1966cb
commit 6c0f83a515
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@ describe('Monitoring Check License', () => {
const result = checkLicense('basic', true, 'test-cluster-ghi');
expect(result).to.eql({
clusterAlerts: { enabled: false },
message: `Cluster Alerts are not displayed if Watcher is disabled or the [test-cluster-ghi] cluster's current license is basic.`
message: `Cluster Alerts are not displayed if Watcher is disabled or the [test-cluster-ghi] cluster's current license is Basic.`
});
});
});
@ -67,7 +67,7 @@ describe('Monitoring Check License', () => {
const result = checkLicense('platinum', true, 'test-cluster-pqr', false);
expect(result).to.eql({
clusterAlerts: { enabled: false },
message: 'Cluster alerts is not enabled because Watcher is disabled.'
message: 'Cluster Alerts are not enabled because Watcher is disabled.'
});
});
});

View file

@ -39,7 +39,7 @@ export function checkLicense(type, active, clusterSource, watcher = true) {
return Object.assign(licenseInfo, {
message: i18n.translate('xpack.monitoring.clusterAlerts.checkLicense.licenseIsBasicDescription', {
defaultMessage:
`Cluster Alerts are not displayed if Watcher is disabled or the [{clusterSource}] cluster's current license is basic.`,
`Cluster Alerts are not displayed if Watcher is disabled or the [{clusterSource}] cluster's current license is Basic.`,
values: {
clusterSource
}
@ -64,7 +64,7 @@ export function checkLicense(type, active, clusterSource, watcher = true) {
if (!watcher) {
return Object.assign(licenseInfo, {
message: i18n.translate('xpack.monitoring.clusterAlerts.checkLicense.watcherIsDisabledDescription', {
defaultMessage: 'Cluster alerts is not enabled because Watcher is disabled.' })
defaultMessage: 'Cluster Alerts are not enabled because Watcher is disabled.' })
});
}