Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHuynh333 committed Nov 5, 2024
1 parent 958c9d6 commit 9a7b03f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<%= turbo_frame_tag "access-token-section" do %>
<div
data-turbo-temporary
class="
p-4 bg-white border rounded-lg shadow-sm border-slate-200 2xl:col-span-2
dark:border-slate-700 sm:p-6 dark:bg-slate-800
Expand Down
3 changes: 2 additions & 1 deletion app/views/profiles/personal_access_tokens/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
<%= check_box_tag "personal_access_token[scopes][]",
scope,
personal_access_token.scopes.include?(scope),
id: "personal_access_token_scopes_#{scope}" %>
id: "personal_access_token_scopes_#{scope}",
class: "w-4 h-4 text-primary-600 bg-slate-100 border-slate-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-slate-800 focus:ring-2 dark:bg-slate-700 dark:border-slate-600" %>
</div>
<div class="ml-2 text-sm">
<%= label_tag "personal_access_token_scopes_#{scope}",
Expand Down
1 change: 1 addition & 0 deletions app/views/profiles/personal_access_tokens/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<%= turbo_refreshes_with method: :morph, scroll: :preserve %>
<%= render Viral::PageHeaderComponent.new(title: t("profiles.personal_access_tokens.index.title"), subtitle: t("profiles.personal_access_tokens.index.subtitle")) do |component| %>
<%= component.with_icon(name: "ticket", classes: "h-14 w-14 text-primary-700") %>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@
<%= viral_flash(type: :success, data: message) %>
<% end %>

<%= turbo_stream.replace "access-token-section" %>
<%= turbo_stream.update "personal-access-tokens-header",
t(
:"profiles.personal_access_tokens.index.active_personal_access_tokens",
count: @active_access_tokens.count,
) %>
<%= turbo_stream.replace "personal_access_tokens", partial: "table" %>
<turbo-stream action="refresh"></turbo-stream>

0 comments on commit 9a7b03f

Please sign in to comment.