Fix issue with client not showing up when no jobs available

This commit is contained in:
Brett Williams
2023-06-01 14:37:26 -05:00
parent 1598a26525
commit 7040812e71
5 changed files with 26 additions and 13 deletions

View File

@@ -68,7 +68,7 @@ def job_detail(job_id):
job=found_job, renderer_info=renderer_info())
@server.route('/ui/job/<job_id>/thumbnail')
@server.route('/api/job/<job_id>/thumbnail')
def job_thumbnail(job_id):
big_thumb = request.args.get('size', False) == "big"
found_job = RenderQueue.job_with_id(job_id, none_ok=True)

View File

@@ -2,7 +2,7 @@ const grid = new gridjs.Grid({
columns: [
{ data: (row) => row.id,
name: 'Thumbnail',
formatter: (cell) => gridjs.html(`<img src="/ui/job/${cell}/thumbnail" style='width: 200px; min-width: 120px;'>`),
formatter: (cell) => gridjs.html(`<img src="/api/job/${cell}/thumbnail" style='width: 200px; min-width: 120px;'>`),
sort: {enabled: false}
},
{ id: 'name',