Added GetMonitorJobs back to UpdateJobs
This commit is contained in:
parent
c3a15a354b
commit
6245210faf
@ -393,6 +393,21 @@ function utf8_to_b64(str) {
|
|||||||
|
|
||||||
function UpdateJobs(){
|
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
|
//Get the jobs that are waiting in the queue
|
||||||
GetWaitingJobs().then((json) => {
|
GetWaitingJobs().then((json) => {
|
||||||
jobsQueuedTag.innerText = json.length;
|
jobsQueuedTag.innerText = json.length;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user