mirror of
https://github.com/ClaperCo/Claper.git
synced 2026-09-01 19:49:11 +02:00
Show terminate to owner only
This commit is contained in:
@@ -158,7 +158,7 @@ defmodule ClaperWeb.EventLive.EventCardComponent do
|
||||
</ul>
|
||||
</div>
|
||||
<.link
|
||||
:if={Event.started?(@event)}
|
||||
:if={Event.started?(@event) && not @is_leader}
|
||||
data-confirm={
|
||||
gettext(
|
||||
"Are you sure you want to terminate this event? This action cannot be undone."
|
||||
|
||||
Reference in New Issue
Block a user