feat(panels): progress on new panel infrastructure, base classes

This commit is contained in:
Torkel Ödegaard
2016-01-25 15:09:37 -05:00
parent 73af4df96d
commit 9c6698e87b
15 changed files with 118 additions and 53 deletions

View File

@@ -15,7 +15,8 @@ export class PanelCtrl {
icon: string;
editorTabs: any;
$scope: any;
isMetricsPanel: boolean;
fullscreen: boolean;
inspector: any;
constructor($scope) {
var plugin = config.panels[this.panel.type];
@@ -77,4 +78,8 @@ export class PanelCtrl {
menu.push({text: 'Share', click: 'ctrl.share(); dismiss();'});
return menu;
}
otherPanelInFullscreenMode() {
return this.dashboard.meta.fullscreen && !this.fullscreen;
}
}