From 6245210faf72b3bb48ef9c7f2a25ac0ee2a3501c Mon Sep 17 00:00:00 2001 From: db-2001 Date: Mon, 30 Oct 2023 14:09:41 -0400 Subject: [PATCH] Added GetMonitorJobs back to UpdateJobs --- Website/interaction.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Website/interaction.js b/Website/interaction.js index 1dfaea7..2dd3e5a 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -392,6 +392,21 @@ function utf8_to_b64(str) { } function UpdateJobs(){ + + GetMonitorJobs().then((json) => { + if(monitoringJobsCount != json.length){ + ResetContent(); + //console.log(json); + json.forEach(job => { + var mangaView = CreateManga(job.manga, job.mangaConnector.name); + mangaView.addEventListener("click", (event) => { + ShowMangaWindow(job, job.manga, event, false); + }); + tasksContent.appendChild(mangaView); + }); + monitoringJobsCount = json.length; + } + }); //Get the jobs that are waiting in the queue GetWaitingJobs().then((json) => {