Skip to content

Commit

Permalink
Only allow run to be stopped on empty stop_run via GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
UsualSpec committed Jul 1, 2024
1 parent df66ea4 commit 870b5e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/management/templates/runOverview.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ <h2>{{ run.run_id | e }}</h2>
<div>
DUT: <a href="{{ url_for('manageDut', dutId=run.dut_id) }}">{{ run.dut_name | e}}</a></span>
</div>
<div class="mt-2 mb-2">
<button id="finishRunBtn-{{ run.run_id | e }}"class="finishRunBtn btn btn-danger mb-2" data-bs-toggle="modal" data-bs-target="#confirmStopModal" data-runid="{{ run.run_id | e }}">Finish run</button>
</div>
{% if not run.stop_run %}
<div class="mt-2 mb-2">
<button id="finishRunBtn-{{ run.run_id | e }}" class="finishRunBtn btn btn-danger mb-2" data-bs-toggle="modal" data-bs-target="#confirmStopModal" data-runid="{{ run.run_id | e }}">Finish run</button>
</div>
{% endif %}
<div>
<h4>Clients</h4>
<ul>
Expand Down

0 comments on commit 870b5e9

Please sign in to comment.