|
37 | 37 | <div class="connected-app__disconnect" data-controller="dialog" data-dialog-modal-value="true" data-action="keydown.esc->dialog#close:stop"> |
38 | 38 | <button type="button" class="btn txt-negative borderless txt-small" data-action="dialog#open" aria-describedby="<%= dom_id(client, :connected_app_name) %>"> |
39 | 39 | <%= icon_tag "trash" %> |
40 | | - <span>Disconnect</span> |
| 40 | + <span>Revoke access</span> |
41 | 41 | </button> |
42 | 42 |
|
43 | 43 | <dialog class="dialog panel fill-white shadow gap flex-column txt-align-center" style="--panel-size: 44ch" data-dialog-target="dialog" aria-labelledby="<%= dom_id(client, :disconnect_title) %>"> |
44 | | - <h3 class="txt-large txt-bold margin-none" id="<%= dom_id(client, :disconnect_title) %>">Disconnect <bdi><%= oauth_client_self_name(client) %></bdi>?</h3> |
| 44 | + <h3 class="txt-large txt-bold margin-none" id="<%= dom_id(client, :disconnect_title) %>">Revoke access for <bdi><%= oauth_client_self_name(client) %></bdi>?</h3> |
45 | 45 | <p class="txt-medium margin-none">It loses its access to Fizzy right away. To use it again, reconnect it.</p> |
46 | 46 |
|
47 | 47 | <%= form_with url: my_connected_app_path(client), method: :delete, class: "flex flex-column" do |form| %> |
48 | 48 | <% if webhooks.any? %> |
49 | | - <div class="flex flex-column gap margin-block-start"> |
50 | | - <div class="connected-app__webhooks txt-align-start" role="note"> |
51 | | - <p class="margin-none">It set up <%= webhooks.one? ? "this webhook" : "these webhooks" %>, which will keep running unless you remove <%= webhooks.one? ? "it" : "them" %>:</p> |
52 | | - <ul class="margin-block-start-half margin-none-block-end"> |
53 | | - <% webhooks.each do |webhook| %> |
54 | | - <li> |
55 | | - <strong><%= webhook.name %></strong> on <%= webhook.board.name %><%= " in #{webhook.account.name}" unless webhook.account == Current.account %> |
56 | | - <%= hidden_field_tag "webhook_ids[]", webhook.id, id: nil %> |
57 | | - </li> |
58 | | - <% end %> |
59 | | - </ul> |
60 | | - </div> |
| 49 | + <div class="connected-app__webhooks flex flex-column gap-half margin-block-start txt-align-start"> |
| 50 | + <p class="margin-none">It set up <%= webhooks.one? ? "this webhook" : "these webhooks" %>, which will keep running unless you remove <%= webhooks.one? ? "it" : "them" %>:</p> |
| 51 | + <ul class="margin-none"> |
| 52 | + <% webhooks.each do |webhook| %> |
| 53 | + <li> |
| 54 | + <strong><%= webhook.name %></strong> on <%= webhook.board.name %><%= " in #{webhook.account.name}" unless webhook.account == Current.account %> |
| 55 | + <%= hidden_field_tag "webhook_ids[]", webhook.id, id: nil %> |
| 56 | + </li> |
| 57 | + <% end %> |
| 58 | + </ul> |
61 | 59 |
|
62 | | - <label class="flex gap-half align-center justify-center"> |
| 60 | + <label class="flex gap-half align-center justify-start margin-block-start-half"> |
63 | 61 | <%= check_box_tag :remove_webhooks, "1", false, class: "checkbox", id: dom_id(client, :remove_webhooks) %> |
64 | 62 | Also remove <%= webhooks.one? ? "this webhook" : "these webhooks" %> |
65 | 63 | </label> |
|
68 | 66 |
|
69 | 67 | <div class="flex gap-half justify-center margin-block-start"> |
70 | 68 | <button type="button" class="btn" data-action="dialog#close">Cancel</button> |
71 | | - <%= form.button "Disconnect", class: "btn txt-negative" %> |
| 69 | + <%= form.button "Revoke access", class: "btn txt-negative" %> |
72 | 70 | </div> |
73 | 71 | <% end %> |
74 | 72 | </dialog> |
|
0 commit comments