mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'master' into redux-poc2
This commit is contained in:
@@ -11,6 +11,8 @@ export class AlertNotificationEditCtrl {
|
||||
model: any;
|
||||
defaults: any = {
|
||||
type: 'email',
|
||||
sendReminder: false,
|
||||
frequency: '15m',
|
||||
settings: {
|
||||
httpMethod: 'POST',
|
||||
autoResolve: true,
|
||||
@@ -18,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 => {
|
||||
@@ -102,6 +109,7 @@ export class AlertNotificationEditCtrl {
|
||||
const payload = {
|
||||
name: this.model.name,
|
||||
type: this.model.type,
|
||||
frequency: this.model.frequency,
|
||||
settings: this.model.settings,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user