mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
set default value of httpMethod
This commit is contained in:
9
public/app/plugins/datasource/prometheus/config_ctrl.ts
Normal file
9
public/app/plugins/datasource/prometheus/config_ctrl.ts
Normal 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';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user