|
@@ -63,16 +63,10 @@ export class StackdriverQueryCtrl extends QueryCtrl {
|
|
|
constructor($scope, $injector) {
|
|
constructor($scope, $injector) {
|
|
|
super($scope, $injector);
|
|
super($scope, $injector);
|
|
|
_.defaultsDeep(this.target, this.defaults);
|
|
_.defaultsDeep(this.target, this.defaults);
|
|
|
- this.setProjects($scope.ctrl.datasource);
|
|
|
|
|
this.panelCtrl.events.on('data-received', this.onDataReceived.bind(this), $scope);
|
|
this.panelCtrl.events.on('data-received', this.onDataReceived.bind(this), $scope);
|
|
|
this.panelCtrl.events.on('data-error', this.onDataError.bind(this), $scope);
|
|
this.panelCtrl.events.on('data-error', this.onDataError.bind(this), $scope);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- async setProjects(ds) {
|
|
|
|
|
- this.projects = await ds.getProjects();
|
|
|
|
|
- console.log(this.projects);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
onDataReceived(dataList) {
|
|
onDataReceived(dataList) {
|
|
|
this.lastQueryError = null;
|
|
this.lastQueryError = null;
|
|
|
this.lastQueryMeta = null;
|
|
this.lastQueryMeta = null;
|