set default value of httpMethod

This commit is contained in:
Mitsuhiro Tanda
2018-03-12 13:53:05 +09:00
parent a83ede0193
commit 4e1501b172
3 changed files with 11 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
export class PrometheusConfigCtrl {
static templateUrl = 'public/app/plugins/datasource/prometheus/partials/config.html';
current: any;
/** @ngInject */
constructor($scope) {
this.current.jsonData.httpMethod = this.current.jsonData.httpMethod || 'GET';
}
}