From e076d1b486cca8d46e2205ef8f0a2d816bf07890 Mon Sep 17 00:00:00 2001 From: Tobias Block Date: Tue, 15 Aug 2023 19:34:30 +0000 Subject: [PATCH] Type fix and UI improvement --- common/config.py | 1 + webinterface/templates/rules_edit.html | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/common/config.py b/common/config.py index c6e65ac9..7a2352ed 100755 --- a/common/config.py +++ b/common/config.py @@ -234,5 +234,6 @@ def check_folders() -> bool: def read_tagslist() -> None: """Reads the list of supported DICOM tags with example values, displayed the UI.""" + global mercure tagslist.alltags = {**tagslist.default_tags, **mercure.dicom_receiver.additional_tags} tagslist.sortedtags = sorted(tagslist.alltags) diff --git a/webinterface/templates/rules_edit.html b/webinterface/templates/rules_edit.html index 57544ad1..adb3e200 100755 --- a/webinterface/templates/rules_edit.html +++ b/webinterface/templates/rules_edit.html @@ -26,7 +26,7 @@

Edit Rule - {{rule}}

  • - + Processing @@ -531,6 +531,9 @@

    Edit Rule - {{rule}}

    if (bulmaTagsInstances[0].tags.length == 0) { $('#erroralert').html('  Processing Steps cannot be empty. Add at least one module.'); $('#erroralert').show(); + $('#processing_id').click(); + $('#modules_list .tagsinput').addClass("is-danger"); + $('#processing_module').focus(); return false; } }