Add conditional rendering for save annotations button based on edit permissions

This commit is contained in:
Ross
2026-02-16 10:31:16 +00:00
parent 57b9c712c2
commit 647081a7d6
@@ -25,8 +25,8 @@
</div>
<div class="col-auto">
<div class="d-flex gap-2">
<button id="save-annotations" class="btn btn-sm btn-primary">Save Annotations</button>
{% if can_edit %}
<button id="save-annotations" class="btn btn-sm btn-primary">Save Annotations</button>
<button id="delete-annotations" class="btn btn-sm btn-outline-danger">Delete Annotations</button>
{% endif %}
</div>