diff --git a/public/app/features/alerting/notification_edit_ctrl.ts b/public/app/features/alerting/notification_edit_ctrl.ts index e066406bc43..92781d42a23 100644 --- a/public/app/features/alerting/notification_edit_ctrl.ts +++ b/public/app/features/alerting/notification_edit_ctrl.ts @@ -20,12 +20,17 @@ export class AlertNotificationEditCtrl { }, isDefault: false, }; + getFrequencySuggestion: any; /** @ngInject */ constructor(private $routeParams, private backendSrv, private $location, private $templateCache, navModelSrv) { this.navModel = navModelSrv.getNav('alerting', 'channels', 0); this.isNew = !this.$routeParams.id; + this.getFrequencySuggestion = () => { + return ['1m', '5m', '10m', '15m', '30m', '1h']; + }; + this.backendSrv .get(`/api/alert-notifiers`) .then(notifiers => { diff --git a/public/app/features/alerting/partials/notification_edit.html b/public/app/features/alerting/partials/notification_edit.html index 7132ed41f3c..7e9997452f9 100644 --- a/public/app/features/alerting/partials/notification_edit.html +++ b/public/app/features/alerting/partials/notification_edit.html @@ -37,28 +37,21 @@ label="Send reminder" label-class="width-12" checked="ctrl.model.sendReminder" - tooltip="Choose to either notify on state change or at every interval"> + tooltip="Choose to either notify on state change (default) or at every interval">