Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
fix #168: set the display state of the empty indicator for the live t…
Browse files Browse the repository at this point in the history
…ab when switching non live display settings
  • Loading branch information
freaktechnik committed Jul 20, 2016
1 parent 1759453 commit 28622ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,17 @@ const setNonLiveDisplay = (display) => {
else if(display == 3)
parent = offline;

if(channelsToMove.length && display <= 1) {
hideNoOnline();
}

for(let node of channelsToMove) {
insertBefore(parent, node, node.querySelector(".name").textContent);
}

if(countLiveChannels() === 0 && display >= 2) {
displayNoOnline();
}
};

const setTheme = (theme) => {
Expand Down

0 comments on commit 28622ff

Please sign in to comment.