Allow admins to add and remove invitations per account #167

Merged
raucao merged 7 commits from feature/164-invites into chore/update_dependencies 2024-02-17 10:17:48 +00:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit ca238be6f4 - Show all commits

View File

@@ -18,9 +18,11 @@
<div class="m-1 bg-white rounded shadow">
<div class="p-8">
<%= content %>
<% if @show_close_button %>
<div class="flex justify-end items-center flex-wrap mt-6">
<button class="btn-md btn-blue" data-action="click->modal#close:prevent">Close</button>
</div>
<% end %>
</div>
</div>
</div>

View File

@@ -1,2 +1,5 @@
class ModalComponent < ViewComponent::Base
def initialize(show_close_button: true)
@show_close_button = show_close_button
end
end