Skip to content

Commit

Permalink
fix: fix editing_tenant in top_nav
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jul 28, 2023
1 parent 019344e commit ed61546
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ash_admin/components/top_nav/tenant_form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ defmodule AshAdmin.Components.TopNav.TenantForm do
"""
end

def mount(socket) do
{:ok, assign(socket, :editing_tenant, false)}
end

def handle_event("start_editing_tenant", _, socket) do
{:noreply, assign(socket, :editing_tenant, true)}
end
Expand Down

0 comments on commit ed61546

Please sign in to comment.