fix: send set tenant to parent liveview

This commit is contained in:
Zach Daniel 2023-07-30 22:03:54 -04:00
parent defd653071
commit 94183dade6

View file

@ -10,12 +10,7 @@ defmodule AshAdmin.Components.TopNav.TenantForm do
def render(assigns) do def render(assigns) do
~H""" ~H"""
<div id={@id} class="relative text-white" phx-hook="Tenant" phx-target={@myself}> <div id={@id} class="relative text-white" phx-hook="Tenant" phx-target={@myself}>
<.form <.form :if={@editing_tenant} for={to_form(%{}, as: :tenant)} phx-submit={@set_tenant}>
:if={@editing_tenant}
for={to_form(%{}, as: :tenant)}
phx-submit={@set_tenant}
phx-target={@myself}
>
<input <input
type="text" type="text"
name="tenant" name="tenant"