riya_business_travel_7.5.5/public/app/features/panel/query_ctrl.ts
venbatechnologies@gmail.com 16f7870fa5 Initial commit
2021-07-05 12:44:38 +05:30

22 lines
497 B
TypeScript

import _ from 'lodash';
import { auto } from 'angular';
export class QueryCtrl {
target!: any;
datasource!: any;
panelCtrl!: any;
panel: any;
hasRawMode!: boolean;
error?: string | null;
isLastQuery: boolean;
constructor(public $scope: any, public $injector: auto.IInjectorService) {
this.panel = this.panelCtrl.panel;
this.isLastQuery = _.indexOf(this.panel.targets, this.target) === this.panel.targets.length - 1;
}
refresh() {
this.panelCtrl.refresh();
}
}