allow close of errors that are not checkdups jobs from FE
This commit is contained in:
@@ -126,10 +126,17 @@
|
||||
{% set msg=GetJM_Message() %}
|
||||
{% if request.endpoint != "fix_dups" and request.endpoint != "rm_dups" %}
|
||||
<div class="py-2 mx-1 alert alert-{{msg.alert}}">
|
||||
{% if msg.job.name != "checkdups" %}
|
||||
<form id="_dismiss" action="{{url_for('clear_jm_msg', id=msg.id)}}" method="POST">
|
||||
<button type="button" class="close btn border-secondary me-3" aria-label="Close" onClick="$('#_dismiss').submit()">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
{% endif %}
|
||||
{% if msg.job_id %}
|
||||
<a href="{{url_for('joblog', id=msg.job_id)}}">Job #{{msg.job_id}}</a>:
|
||||
{% endif %}
|
||||
{{msg.message|safe}}
|
||||
</form>
|
||||
</div>
|
||||
{# if a JM is a danger message, allow code to remove the status, it should be 'permanent' until addressed -- e.g. you have duplicates, fix them #}
|
||||
{% if msg.alert != "danger" %}
|
||||
|
||||
Reference in New Issue
Block a user