Sfoglia il codice sorgente

various fixes to angular loading

Torkel Ödegaard 7 anni fa
parent
commit
57de2475b0

+ 0 - 1
public/app/core/services/dynamic_directive_srv.ts

@@ -21,7 +21,6 @@ class DynamicDirectiveSrv {
     }
 
     if (!directiveInfo.fn.registered) {
-      console.log('register panel tab');
       coreModule.directive(attrs.$normalize(directiveInfo.name), directiveInfo.fn);
       directiveInfo.fn.registered = true;
     }

+ 0 - 9
public/app/features/dashboard/dashgrid/DashboardPanel.tsx

@@ -59,10 +59,6 @@ export class DashboardPanel extends PureComponent<Props, State> {
     this.loadPlugin();
   };
 
-  onAngularPluginTypeChanged = () => {
-    this.loadPlugin();
-  };
-
   loadPlugin() {
     if (this.isSpecial()) {
       return;
@@ -94,9 +90,6 @@ export class DashboardPanel extends PureComponent<Props, State> {
   }
 
   componentDidUpdate() {
-    this.loadPlugin();
-
-    // handle angular plugin loading
     if (!this.element || this.state.angularPanel) {
       return;
     }
@@ -155,8 +148,6 @@ export class DashboardPanel extends PureComponent<Props, State> {
       return null;
     }
 
-    console.log('DashboardPanel.render()');
-
     const containerClass = this.props.isEditing ? 'panel-editor-container' : 'panel-height-helper';
     const panelWrapperClass = this.props.isEditing ? 'panel-editor-container__panel' : 'panel-height-helper';
 

+ 0 - 4
public/app/features/dashboard/dashgrid/VisualizationTab.tsx

@@ -51,9 +51,6 @@ export class VisualizationTab extends PureComponent<Props> {
   }
 
   componentDidUpdate(prevProps: Props) {
-    console.log('VizTab component did update');
-
-    // if type changed
     if (this.props.plugin !== prevProps.plugin) {
       this.cleanUpAngularOptions();
     }
@@ -69,7 +66,6 @@ export class VisualizationTab extends PureComponent<Props> {
 
   loadAngularOptions() {
     const { angularPanel } = this.props;
-    console.log('loadAngularOptions angularPanel=' + angularPanel);
 
     const scope = angularPanel.getScope();
 

+ 0 - 1
public/app/features/dashboard/panel_model.ts

@@ -199,7 +199,6 @@ export class PanelModel {
         }
 
         delete this[key];
-        console.log('deleting ', key);
       }
     }
   }