From 17a9338d9fa64c4c45f74fc6d8d49e441ae63473 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 29 Nov 2023 16:11:14 +0100 Subject: [PATCH] Fix job deletion from job page --- app/templates/jobs/job.html.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/jobs/job.html.j2 b/app/templates/jobs/job.html.j2 index 7fad7bcb..f6d71719 100644 --- a/app/templates/jobs/job.html.j2 +++ b/app/templates/jobs/job.html.j2 @@ -153,16 +153,16 @@ let deleteJobRequestElement = document.querySelector('#delete-job-request'); let restartJobRequestElement = document.querySelector('#restart-job-request'); deleteJobRequestElement.addEventListener('click', (event) => { - requests.jobs.entity.delete({{ job.hashid|tojson }}); + nopaque.requests.jobs.entity.delete({{ job.hashid|tojson }}); }); restartJobRequestElement.addEventListener('click', (event) => { - requests.jobs.entity.restart({{ job.hashid|tojson }}); + nopaque.requests.jobs.entity.restart({{ job.hashid|tojson }}); }); if ({{ current_user.is_administrator()|tojson }}) { let jobLogButtonElement = document.querySelector('#job-log-button'); jobLogButtonElement.addEventListener('click', (event) => { - requests.jobs.entity.log({{ job.hashid|tojson }}) + nopaque.requests.jobs.entity.log({{ job.hashid|tojson }}) .then( (response) => { response.json()