Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Sep 10, 2024
1 parent 0950d33 commit 080a0c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions www/js/dataset_curator.js
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ const setupPlotlyOptions = async () => {

if (!allColumns.length) {
document.getElementById("plot-options-s-failed").classList.remove("is-hidden");
createToast("No metadata columns found in dataset. Cannot create a plot. Please choose another dataset");
createToast("No metadata columns found in dataset. Cannot create a plot. Please choose another analysis or choose another dataset.");
return;
}

Expand Down Expand Up @@ -1376,7 +1376,7 @@ const setupScanpyOptions = async () => {

if (!allColumns.length) {
document.getElementById("plot-options-s-failed").classList.remove("is-hidden");
createToast("No metadata columns found in dataset. Cannot create a plot. Please choose another dataset");
createToast("No metadata columns found in dataset. Cannot create a plot. Please choose another analysis or choose another dataset.");
return;
}

Expand Down
4 changes: 2 additions & 2 deletions www/js/multigene_curator.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class GenesAsAxisHandler extends PlotHandler {

if (!catColumns.length) {
document.getElementById("plot-options-s-failed").classList.remove("is-hidden");
createToast("No categorical columns found in dataset. Cannot create a plot. Please choose another dataset");
createToast("No metadata columns found in dataset. Cannot create a plot. Please choose another analysis or choose another dataset.");
return;
}

Expand Down Expand Up @@ -584,7 +584,7 @@ class GenesAsDataHandler extends PlotHandler {

if (!catColumns.length) {
document.getElementById("plot-options-s-failed").classList.remove("is-hidden");
createToast("No categorical columns found in dataset. Cannot create a plot. Please choose another dataset");
createToast("No metadata columns found in dataset. Cannot create a plot. Please choose another analysis or choose another dataset.");
return;
}

Expand Down

0 comments on commit 080a0c4

Please sign in to comment.