This commit is contained in:
Torkel Ödegaard 2016-01-20 09:45:24 +01:00
parent 3e3b996963
commit 8dd118bd86
2 changed files with 2 additions and 3 deletions

View File

@ -23,7 +23,6 @@ export default class PanelMeta {
this.addMenuItem('Edit', 'icon-cog', 'editPanel(); dismiss();', 'Editor');
this.addMenuItem('Duplicate', 'icon-copy', 'duplicatePanel()', 'Editor');
this.addMenuItem('Share', 'icon-share', 'sharePanel(); dismiss();');
this.addEditorTab('General', 'app/partials/panelgeneral.html');
if (options.metricsEditor) {

View File

@ -15,7 +15,6 @@ class PanelBaseCtrl {
}
class TestPanelCtrl extends PanelBaseCtrl {
constructor($scope) {
super($scope);
$scope.panelMeta.panelName = "Test";
@ -32,7 +31,8 @@ function testPanelDirective() {
</div>
</grafana-panel>
`,
controller: TestPanelCtrl
controller: TestPanelCtrl,
controllerAs: 'ctrl',
};
}