فهرست منبع

fix(dashlist): fix for entering dashboard list edit mode

Torkel Ödegaard 10 سال پیش
والد
کامیت
501f21b16c
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 1
      public/app/features/panel/panel_loader.ts
  2. 1 0
      public/app/plugins/panel/dashlist/module.ts

+ 1 - 1
public/app/features/panel/panel_loader.ts

@@ -8,7 +8,7 @@ import {UnknownPanel} from '../../plugins/panel/unknown/module';
 var directiveModule = angular.module('grafana.directives');
 var directiveModule = angular.module('grafana.directives');
 
 
 /** @ngInject */
 /** @ngInject */
-function panelLoader($compile, dynamicDirectiveSrv, $http, $q, $injector, $templateCache) {
+function panelLoader($compile, $http, $q, $injector, $templateCache) {
   return {
   return {
     restrict: 'E',
     restrict: 'E',
     scope: {
     scope: {

+ 1 - 0
public/app/plugins/panel/dashlist/module.ts

@@ -28,6 +28,7 @@ class DashListCtrl extends PanelCtrl {
   }
   }
 
 
   initEditMode() {
   initEditMode() {
+    super.initEditMode();
     this.modes = ['starred', 'search'];
     this.modes = ['starred', 'search'];
     this.icon = "fa fa-star";
     this.icon = "fa fa-star";
     this.addEditorTab('Options', () => {
     this.addEditorTab('Options', () => {