mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Stackdriver: Set target correctly
This commit is contained in:
parent
1288860058
commit
191b6cc32c
@ -13,17 +13,18 @@ export class StackdriverQueryCtrl extends QueryCtrl {
|
||||
};
|
||||
defaultDropdownValue = 'select';
|
||||
|
||||
defaults = {
|
||||
project: {
|
||||
id: 'default',
|
||||
name: 'loading project...',
|
||||
},
|
||||
metricType: this.defaultDropdownValue,
|
||||
};
|
||||
|
||||
/** @ngInject */
|
||||
constructor($scope, $injector) {
|
||||
super($scope, $injector);
|
||||
this.target = {
|
||||
project: {
|
||||
id: 'default',
|
||||
name: 'loading project...',
|
||||
},
|
||||
metricType: this.defaultDropdownValue,
|
||||
};
|
||||
|
||||
_.defaultsDeep(this.target, this.defaults);
|
||||
this.getCurrentProject().then(this.getMetricTypes.bind(this));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user