mirror of
https://github.com/ash-project/ash_admin.git
synced 2024-09-20 05:12:54 +12:00
fix: show add button on array input relationships
This commit is contained in:
parent
9378fd7f99
commit
b4b1204c1c
1 changed files with 2 additions and 2 deletions
|
@ -275,7 +275,7 @@ defmodule AshAdmin.Components.Resource.Form do
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
:on-click="append_related"
|
:on-click="append_related"
|
||||||
:if={{ could_lookup?(opts) && !relationship_set?(form.source, relationship.name, argument.name) }}
|
:if={{ could_lookup?(opts) }}
|
||||||
phx-value-path={{ form.name <> "[#{argument.name}]" }}
|
phx-value-path={{ form.name <> "[#{argument.name}]" }}
|
||||||
phx-value-type={{ "lookup" }}
|
phx-value-type={{ "lookup" }}
|
||||||
class="flex h-6 w-6 m-2 border-gray-600 hover:bg-gray-400 rounded-md justify-center items-center"
|
class="flex h-6 w-6 m-2 border-gray-600 hover:bg-gray-400 rounded-md justify-center items-center"
|
||||||
|
@ -286,7 +286,7 @@ defmodule AshAdmin.Components.Resource.Form do
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
:on-click="append_related"
|
:on-click="append_related"
|
||||||
:if={{ could_create?(opts) && !relationship_set?(form.source, relationship.name, argument.name) }}
|
:if={{ could_create?(opts) }}
|
||||||
phx-value-path={{ form.name <> "[#{argument.name}]" }}
|
phx-value-path={{ form.name <> "[#{argument.name}]" }}
|
||||||
phx-value-type={{"create"}}
|
phx-value-type={{"create"}}
|
||||||
class="flex h-6 w-6 m-2 border-gray-600 hover:bg-gray-400 rounded-md justify-center items-center"
|
class="flex h-6 w-6 m-2 border-gray-600 hover:bg-gray-400 rounded-md justify-center items-center"
|
||||||
|
|
Loading…
Reference in a new issue