Torkel Ödegaard 10 лет назад
Родитель
Сommit
8dd118bd86

+ 0 - 1
public/app/features/panel/panel_meta2.ts

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

+ 2 - 2
public/app/plugins/panel/test/module.ts

@@ -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',
   };
 }