feat(panels): minor progress

This commit is contained in:
Torkel Ödegaard 2016-01-25 15:58:24 -05:00
parent 9c6698e87b
commit c30b1b126d
3 changed files with 9 additions and 5 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -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() {