Implement RS auth revocation
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user