Skip to content

Commit

Permalink
analysis switching bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Sep 10, 2024
1 parent 2a93cd2 commit b6e2ce0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions www/js/curator_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ const chooseAnalysis = async () => {
document.getElementById("current-analysis").textContent = analysisText;
document.getElementById("current-analysis-post").textContent = analysisText;

// User may have chosen a new analysis with plot options
document.getElementById("plot-type-select").disabled = false;

// NOTE: For now, we can just pass analysis id only to tSNE and be fine
// Any private dataset will belong to our user. Any public datasets can be found by the API "get_analysis" code.
Expand Down Expand Up @@ -675,11 +677,7 @@ const cloneDisplay = async (event, display, scope="owner") => {
document.getElementById("plot-type-select-c-failed").classList.remove("is-hidden");
document.getElementById("plot-type-s-success").classList.add("is-hidden");
document.getElementById("plot-type-select-c-success").classList.add("is-hidden");
// make all plot types disabled
for (const plotType in availablePlotTypes) {
setPlotTypeDisabledState(plotType, false);
}
plotTypeSelect.update();
document.getElementById("plot-type-select").disabled = true;
return;
} finally {
cloneElt.classList.remove("is-loading");
Expand Down Expand Up @@ -1136,11 +1134,7 @@ const plotTypeSelectUpdate = async (analysisId=null) => {
document.getElementById("plot-type-select-c-failed").classList.remove("is-hidden");
document.getElementById("plot-type-s-success").classList.add("is-hidden");
document.getElementById("plot-type-select-c-success").classList.add("is-hidden");
// make all plot types disabled
for (const plotType in availablePlotTypes) {
setPlotTypeDisabledState(plotType, false);
}
plotTypeSelect.update();
document.getElementById("plot-type-select").disabled = true;
}
}

Expand Down

0 comments on commit b6e2ce0

Please sign in to comment.