mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
feat(panels): minor progress
This commit is contained in:
parent
9c6698e87b
commit
c30b1b126d
@ -7,9 +7,11 @@ class MetricsPanelCtrl extends PanelCtrl {
|
||||
error: boolean;
|
||||
loading: boolean;
|
||||
datasource: any;
|
||||
$q: any;
|
||||
datasourceSrv: any;
|
||||
|
||||
constructor($scope, private $q, private datasourceSrv) {
|
||||
super($scope);
|
||||
constructor($scope, $injector) {
|
||||
super($scope, $injector);
|
||||
this.editorTabIndex = 1;
|
||||
|
||||
if (!this.panel.targets) {
|
||||
|
@ -15,12 +15,14 @@ export class PanelCtrl {
|
||||
icon: string;
|
||||
editorTabs: any;
|
||||
$scope: any;
|
||||
$injector: any;
|
||||
fullscreen: boolean;
|
||||
inspector: any;
|
||||
|
||||
constructor($scope) {
|
||||
constructor($scope, $injector) {
|
||||
var plugin = config.panels[this.panel.type];
|
||||
|
||||
this.$injector = $injector;
|
||||
this.$scope = $scope;
|
||||
this.name = plugin.name;
|
||||
this.icon = plugin.info.icon;
|
||||
|
@ -9,8 +9,8 @@ function optionsTab() {
|
||||
export class TestPanelCtrl extends MetricsPanelCtrl {
|
||||
data: any;
|
||||
|
||||
constructor($scope, $q, datasourceSrv) {
|
||||
super($scope, $q, datasourceSrv);
|
||||
constructor($scope, $injector) {
|
||||
super($scope, $injector);
|
||||
}
|
||||
|
||||
initEditorTabs() {
|
||||
|
Loading…
Reference in New Issue
Block a user