various fixes to angular loading

This commit is contained in:
Torkel Ödegaard
2018-11-16 15:09:14 +01:00
parent 7c72f8e028
commit 57de2475b0
4 changed files with 0 additions and 15 deletions
@@ -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;
}
@@ -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';
@@ -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();
@@ -199,7 +199,6 @@ export class PanelModel {
}
delete this[key];
console.log('deleting ', key);
}
}
}