Fix #13
This commit is contained in:
parent
93bd7afa3f
commit
8983a8d5ea
@ -1,4 +1,5 @@
|
|||||||
let runningJobs = [];
|
let monitoringJobsCount = 0;
|
||||||
|
let runningJobs = [];
|
||||||
let waitingJobs = [];
|
let waitingJobs = [];
|
||||||
let notificationConnectorTypes = [];
|
let notificationConnectorTypes = [];
|
||||||
let libraryConnectorTypes = [];
|
let libraryConnectorTypes = [];
|
||||||
@ -356,15 +357,18 @@ function utf8_to_b64(str) {
|
|||||||
|
|
||||||
function UpdateJobs(){
|
function UpdateJobs(){
|
||||||
GetMonitorJobs().then((json) => {
|
GetMonitorJobs().then((json) => {
|
||||||
ResetContent();
|
if(monitoringJobsCount != json.length){
|
||||||
//console.log(json);
|
ResetContent();
|
||||||
json.forEach(job => {
|
//console.log(json);
|
||||||
var mangaView = CreateManga(job.manga, job.mangaConnector.name);
|
json.forEach(job => {
|
||||||
mangaView.addEventListener("click", (event) => {
|
var mangaView = CreateManga(job.manga, job.mangaConnector.name);
|
||||||
ShowMangaWindow(job, job.manga, event, false);
|
mangaView.addEventListener("click", (event) => {
|
||||||
|
ShowMangaWindow(job, job.manga, event, false);
|
||||||
|
});
|
||||||
|
tasksContent.appendChild(mangaView);
|
||||||
});
|
});
|
||||||
tasksContent.appendChild(mangaView);
|
monitoringJobsCount = json.length;
|
||||||
});
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
GetWaitingJobs().then((json) => {
|
GetWaitingJobs().then((json) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user