Skip to content

Commit

Permalink
Merge pull request #217 from medema-group/hotfix/network-error-msg
Browse files Browse the repository at this point in the history
Hotfix/network error msg
  • Loading branch information
nlouwen authored Nov 28, 2024
2 parents dc2bd3d + ab49263 commit 6958601
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,13 @@ a.anchor {
height: 10px;
width: 10px;
display: block;
border: 1px solid black;
border: 1px solid var(--text-color-tooltip);
background: green;
}

.showhide-btn.active {
background: red;
background: -webkit-linear-gradient(-45deg, transparent 0%, transparent 45%, black 45%, black 55%, transparent 55%, transparent 100%), -webkit-linear-gradient(45deg, transparent 0%, transparent 45%, black 46%, black 56%, transparent 56%, transparent 100%);
background-color: red;
}

.navtext-container {
Expand Down
10 changes: 8 additions & 2 deletions big_scape/output/html_template/output/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,14 @@ <h3>Network</h3>
}
$("#bigscape-runs").html("")
for (var [run_id, data] of Object.entries(run_data)) {
var inc = data["end_time"] ? "" : "(Unfinished) " // label runs that did not finish
for (var cutoff of data["cutoffs"].split(",")) {
$("#bigscape-runs").append("<option value='" + run_id + "," + cutoff + "'>" + data["label"] + "_c" + cutoff + "</option>");
var val = run_id + "," + cutoff
$("#bigscape-runs").append("<option value='" + val + "'>" + inc + data["label"] + "_c" + cutoff + "</option>");
}
// set default loaded run to the most recent finished run
if (!inc) {
$("#bigscape-runs").val(val)
}
}
$("#bigscape-runs").off().on("change", function () {
Expand Down Expand Up @@ -899,7 +905,7 @@ <h3>Network</h3>
WHERE family.run_id==${run_id} AND family.cutoff==${cutoff}
GROUP BY gbk.organism`)[0]
if (gbk_org_data === undefined) {
throw Error("There were no networks created in this run")
throw Error("There were no networks created in this run;\nPlease select another run from the dropdown menu")
}
var pieLabels = []
var pieData = []
Expand Down

0 comments on commit 6958601

Please sign in to comment.