Move jobs namespace back to http routes

This commit is contained in:
Patrick Jentsch
2024-12-12 10:32:08 +01:00
parent 328f85ba52
commit bb60a2ba67
8 changed files with 157 additions and 164 deletions

View File

@ -151,9 +151,9 @@
{% if current_user.is_administrator %}
const jobLogButtonElement = document.querySelector('#job-log-button');
const jobLogModalElement = document.querySelector('#job-log-modal');
jobLogButtonElement.addEventListener('click', async (event) => {
const jobLogModalElement = document.querySelector('#job-log-modal');
const log = await app.jobs.log({{ job.hashid|tojson }});
jobLogModalElement.querySelector('pre code').textContent = log;
});