Skip to content

Commit

Permalink
Type fix and UI improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
tblock79 committed Aug 15, 2023
1 parent bf2651a commit e076d1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 4 additions & 1 deletion webinterface/templates/rules_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="title">Edit Rule - {{rule}}</h1>
</a>
</li>
<li data-tab="processing">
<a>
<a id="processing_id">
<span class="icon"><i class="fa fa-microchip"></i></span>
<span>Processing</span>
</a>
Expand Down Expand Up @@ -531,6 +531,9 @@ <h1 class="title">Edit Rule - {{rule}}</h1>
if (bulmaTagsInstances[0].tags.length == 0) {
$('#erroralert').html('<i class="fas fa-bug"></i>&nbsp;&nbsp;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;
}
}
Expand Down

0 comments on commit e076d1b

Please sign in to comment.