| 12345678910111213141516171819202122232425 |
- import _ from 'lodash';
- import { QueryCtrl } from 'app/plugins/sdk';
- import { Target } from './types';
- export class StackdriverQueryCtrl extends QueryCtrl {
- static templateUrl = 'partials/query.editor.html';
- templateSrv: any;
- /** @ngInject */
- constructor($scope, $injector, templateSrv) {
- super($scope, $injector);
- this.templateSrv = templateSrv;
- this.onQueryChange = this.onQueryChange.bind(this);
- this.onExecuteQuery = this.onExecuteQuery.bind(this);
- }
- onQueryChange(target: Target) {
- Object.assign(this.target, target);
- }
- onExecuteQuery() {
- this.$scope.ctrl.refresh();
- }
- }
|