Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions lib/algora_web/live/org/bounties_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -221,22 +221,24 @@ defmodule AlgoraWeb.Org.BountiesLive do
</td>
<td class="[&:has([role=checkbox])]:pr-0 p-4 align-middle">
<div class="flex items-center justify-end gap-2">
<.button
phx-click="edit-bounty-amount"
phx-value-id={bounty.id}
variant="secondary"
size="sm"
>
Edit Amount
</.button>
<.button
phx-click="delete-bounty"
phx-value-id={bounty.id}
variant="destructive"
size="sm"
>
Delete
</.button>
<%= if @current_user_role in [:admin, :mod] do %>
<.button
phx-click="edit-bounty-amount"
phx-value-id={bounty.id}
variant="secondary"
size="sm"
>
Edit Amount
</.button>
<.button
phx-click="delete-bounty"
phx-value-id={bounty.id}
variant="destructive"
size="sm"
>
Delete
</.button>
<% end %>
</div>
</td>
</tr>
Expand Down