diff --git a/public/app/features/alerting/alert_def.ts b/public/app/features/alerting/alert_def.ts index 58d50ebd908..894f3cb5cbe 100644 --- a/public/app/features/alerting/alert_def.ts +++ b/public/app/features/alerting/alert_def.ts @@ -42,8 +42,8 @@ function createReducerPart(model) { } var severityLevels = { - 'critical': {text: 'CRITICAL', iconClass: 'icon-gf icon-gf-critical', stateClass: 'alert-state-critical'}, - 'warning': {text: 'WARNING', iconClass: 'icon-gf icon-gf-warning', stateClass: 'alert-state-warning'}, + 'critical': {text: 'Critical', iconClass: 'icon-gf icon-gf-critical', stateClass: 'alert-state-critical'}, + 'warning': {text: 'Warning', iconClass: 'icon-gf icon-gf-warning', stateClass: 'alert-state-warning'}, }; function getStateDisplayModel(state) { diff --git a/public/app/features/alerting/alert_list_ctrl.ts b/public/app/features/alerting/alert_list_ctrl.ts index ebae20e1ebf..64b0950a90c 100644 --- a/public/app/features/alerting/alert_list_ctrl.ts +++ b/public/app/features/alerting/alert_list_ctrl.ts @@ -3,6 +3,7 @@ import angular from 'angular'; import _ from 'lodash'; import coreModule from '../../core/core_module'; +import appEvents from '../../core/app_events'; import moment from 'moment'; import alertDef from './alert_def'; @@ -42,6 +43,13 @@ export class AlertListCtrl { }); }); } + + openHowTo() { + appEvents.emit('show-modal', { + src: 'public/app/features/alerting/partials/alert_howto.html', + model: {} + }); + } } coreModule.controller('AlertListCtrl', AlertListCtrl); diff --git a/public/app/features/alerting/partials/alert_howto.html b/public/app/features/alerting/partials/alert_howto.html new file mode 100644 index 00000000000..4452ed888c3 --- /dev/null +++ b/public/app/features/alerting/partials/alert_howto.html @@ -0,0 +1,19 @@ +