From cb8e883e46883c467cb9aed141c2d8849a32cb5c Mon Sep 17 00:00:00 2001 From: Tobias Block Date: Tue, 8 Oct 2024 23:04:29 +0000 Subject: [PATCH] Added UI error message for query tool. --- webinterface/templates/dashboards/query.html | 25 ++++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/webinterface/templates/dashboards/query.html b/webinterface/templates/dashboards/query.html index 7858fd1..531cb20 100644 --- a/webinterface/templates/dashboards/query.html +++ b/webinterface/templates/dashboards/query.html @@ -17,6 +17,10 @@

DICOM Query

Redis connection not available, so this dashboard will not function. {% endif %} + +
@@ -144,13 +148,13 @@

DICOM Query

- id - type - status - created_at - accession - result - progress + ID + Type + Status + Created at + Accession + Result + Progress @@ -338,6 +342,13 @@

DICOM Query

order: [[4, 'desc']], initComplete: function() {} }); + + $.fn.dataTable.ext.errMode = 'throw'; + $('#get-accessions-table').on('error.dt', function(e, settings, techNote, message) { + console.log( 'An error has been reported by DataTables: ', message); + $('#backend-error').removeClass("is-hidden"); + }) + var jobId; var errMessage; var accessionTableConfig = {