Skip to content

Commit

Permalink
wc: Remove unused code in jupyter notebook tool #TASK-7216 #TASK-7100
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes committed Jan 10, 2025
1 parent dff7ff2 commit 0eebb7b
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/webcomponents/commons/analysis/jupyter-notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class JupyterNotebook extends LitElement {
}

#init() {
this.enter = false;
this._enter = false;
this._config = this.getDefaultConfig();
}

Expand All @@ -54,24 +54,13 @@ export default class JupyterNotebook extends LitElement {
...this.config
};
}

super.update(changedProperties);
}

onEnterClick() {
this.enter = true;
this._enter = true;
this.requestUpdate();

// Execute function provided in the configuration
/* if (this.analysisClass.execute) {
this.analysisClass.execute(this.opencgaSession, e.detail.data, e.detail.params);
} else {
console.error(`No execute() function provided for analysis: ${this._config.id}`)
}*/

// // TODO NOTE onAnalysisRun at the moment just forwards the `analysisRun` event fired in opencga-analysis-tool-form
// this.dispatchEvent(new CustomEvent("execute", {
// detail: e.detail
// }));
}

renderWelcomeView() {
Expand Down Expand Up @@ -126,7 +115,7 @@ export default class JupyterNotebook extends LitElement {
<tool-header
title="Jupyter Notebook">
</tool-header>
${this.enter ? this.renderJupyterFrame() : this.renderWelcomeView()}
${this._enter ? this.renderJupyterFrame() : this.renderWelcomeView()}
`;
}

Expand Down

0 comments on commit 0eebb7b

Please sign in to comment.