Added background jobs UI

This commit is contained in:
2018-04-28 21:17:44 +02:00
parent 59633707c1
commit 262b6018d1
7 changed files with 122 additions and 11 deletions

View File

@ -75,6 +75,11 @@ export async function multiSearchAnime(arn: AnimeNotifier, textarea: HTMLTextAre
// Start background job
export async function startJob(arn: AnimeNotifier, button: HTMLButtonElement) {
if(button.dataset.running === "true") {
alert("Job is currently running!")
return
}
let jobName = button.dataset.job
if(!confirm(`Are you sure you want to start the "${jobName}" job?`)) {