This commit is contained in:
schrom01
2023-02-16 12:44:01 +01:00
parent 7ee78f7f5c
commit 1c22109df7
3 changed files with 116 additions and 11 deletions
+2 -2
View File
@@ -138,9 +138,9 @@ function refreshWatch(watchIndex) {
let timeCell = document.getElementById("time-" + watchIndex)
timeCell.textContent = timeToISO(sumForWatch(actualTopic.watches[watchIndex]))
if(actualTopic.watches[watchIndex]["actions"].length !== 0 && actualTopic.watches[watchIndex]["actions"].slice(-1)[0]["type"] === "start"){
timeCell.classList.add("active")
timeCell.classList.add("activeWatch")
} else {
timeCell.classList.remove("active")
timeCell.classList.remove("activeWatch")
}
let countCell = document.getElementById("count-" + watchIndex)
countCell.textContent = countForWatch(actualTopic.watches[watchIndex]) + " Wortmeldungen"