This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
3
3
[PATCH todo.sr.ht] Disable 'Assign myself' button if already assigned
Closes: https://todo.sr.ht/~sircmpwn/todo.sr.ht/275
---
todosrht/templates/ticket.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/todosrht/templates/ticket.html b/todosrht/templates/ticket.html
index 3a138e6..7ff34d5 100644
--- a/todosrht/templates/ticket.html
+++ b/todosrht/templates/ticket.html
@@ -182,6 +182,10 @@
<button
name="myself"
class="btn btn-default"
+ {% if current_user in ticket.assigned_users %}
+ title="you are already assigned to this ticket"
+ disabled
+ {% endif %}
>Assign myself {{ icon('caret-right') }}</button>
<button class="btn btn-primary">
Assign {{ icon('caret-right') }}
--
2.40.1
[todo.sr.ht/patches] build failed
Thanks!
To git@git.sr.ht:~sircmpwn/todo.sr.ht
7348b4a..dfda88c master -> master