Implement RS auth revocation
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Râu Cao
2023-11-19 18:49:17 +01:00
parent 8ec2a6d7e4
commit 713e91a720
6 changed files with 49 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ class DropdownLinkComponent < ViewComponent::Base
private
def class_str(separator, add_class)
str = "no-underline block px-4 py-2 text-sm text-gray-900 bg-white
str = "no-underline block px-5 py-3 text-sm text-gray-900 bg-white
hover:bg-gray-100 focus:bg-gray-100 whitespace-no-wrap"
str = "#{str} border-t" if separator
str = "#{str} #{add_class}" if add_class

View File

@@ -20,7 +20,8 @@
Launch app
<% end %>
<%= render DropdownLinkComponent.new(
href: "#", separator: true, add_class: "text-red-700"
href: revoke_services_storage_rs_auth_url(@auth),
separator: true, add_class: "text-red-700"
) do %>
Revoke access
<% end %>