Skip to content

Commit

Permalink
bugfix settings switch will now reload the chart
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrKermet committed Jan 15, 2024
1 parent 1e22771 commit 51e3783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/webcontent/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,15 +573,15 @@ function toggleHideLpq(){
state.showLpqNames = !lpqNameToggle.classList.contains("active");
//reload if it has changed and current chart is the tangling view
if(before !== state.showLpqNames && state.currentChart === state.tanglingChart)
toggleChart(state.tanglingChart);
toggleChart(state.tanglingChart, true);
}
/* toggles the tangling graph to either circular or non-circular graph*/
function toggleTanglingGraphMode(){
let before = state.showTanglingAsNormalGraph;
state.showTanglingAsNormalGraph = !circularTanglingToggle.classList.contains("active");
//reload if it has changed and current chart is the tangling view
if(before !== state.showTanglingAsNormalGraph && state.currentChart === state.tanglingChart)
toggleChart(state.tanglingChart);
toggleChart(state.tanglingChart, true);
}

function updateTimestamp() {
Expand Down

0 comments on commit 51e3783

Please sign in to comment.