mirror of
https://github.com/ash-project/ash_admin.git
synced 2024-09-20 05:12:54 +12:00
fix: update to ash_phoenix, fix relationship embeds
This commit is contained in:
parent
45cc12c7dc
commit
4da3be19d4
3 changed files with 5 additions and 4 deletions
|
@ -853,7 +853,7 @@ defmodule AshAdmin.Components.Resource.Form do
|
|||
type="button"
|
||||
:on-click="append_embed"
|
||||
:if={{can_append_embed?(form.source, attribute.name)}}
|
||||
phx-value-path={{ form.name <> "[#{attribute.name}]" }}
|
||||
phx-value-path={{ name || form.name <> "[#{attribute.name}]" }}
|
||||
class="flex h-6 w-6 mt-2 border-gray-600 hover:bg-gray-400 rounded-md justify-center items-center"
|
||||
>
|
||||
<HeroIcon name="plus" class="h-4 w-4 text-gray-500" />
|
||||
|
@ -1653,6 +1653,7 @@ defmodule AshAdmin.Components.Resource.Form do
|
|||
end
|
||||
|
||||
defp map_type?(:map), do: true
|
||||
defp map_type?(Ash.Type.Map), do: true
|
||||
|
||||
defp map_type?(type) do
|
||||
if Ash.Type.embedded_type?(type) do
|
||||
|
|
4
mix.exs
4
mix.exs
|
@ -86,8 +86,8 @@ defmodule AshAdmin.MixProject do
|
|||
# Run "mix help deps" to learn about dependencies.
|
||||
defp deps do
|
||||
[
|
||||
{:ash, "~> 1.37 and >= 1.37.1"},
|
||||
{:ash_phoenix, "~> 0.4 and >= 0.4.13"},
|
||||
{:ash, "~> 1.41 and >= 1.41.6"},
|
||||
{:ash_phoenix, "~> 0.4 and >= 0.4.14"},
|
||||
{:surface, "~> 0.3.2"},
|
||||
{:phoenix_live_view, "~> 0.15.4"},
|
||||
{:phoenix_html, "~> 2.14.1 or ~> 2.15"},
|
||||
|
|
2
mix.lock
2
mix.lock
|
@ -1,5 +1,5 @@
|
|||
%{
|
||||
"ash": {:hex, :ash, "1.41.5", "3c4d2129e80c5cb7839345610a2122deff07f2199bc86eab02facf25978387da", [:mix], [{:comparable, "~> 1.0", [hex: :comparable, repo: "hexpm", optional: false]}, {:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ecto, "~> 3.4", [hex: :ecto, repo: "hexpm", optional: false]}, {:ets, "~> 0.8.0", [hex: :ets, repo: "hexpm", optional: false]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.3.5", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:picosat_elixir, "~> 0.1.5", [hex: :picosat_elixir, repo: "hexpm", optional: false]}, {:timex, ">= 3.0.0", [hex: :timex, repo: "hexpm", optional: false]}], "hexpm", "0b5d4ff2a6694d83cb7a5d1a701d60911018a87f9bd3c083044d64b6673820db"},
|
||||
"ash": {:hex, :ash, "1.41.6", "ac537c3f722bbfb928b56a8ff21bc10f6a2447eec90abc085f96527920b4b84f", [:mix], [{:comparable, "~> 1.0", [hex: :comparable, repo: "hexpm", optional: false]}, {:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ecto, "~> 3.4", [hex: :ecto, repo: "hexpm", optional: false]}, {:ets, "~> 0.8.0", [hex: :ets, repo: "hexpm", optional: false]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.3.5", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:picosat_elixir, "~> 0.1.5", [hex: :picosat_elixir, repo: "hexpm", optional: false]}, {:timex, ">= 3.0.0", [hex: :timex, repo: "hexpm", optional: false]}], "hexpm", "51b9f0943ccbbfea529831514458c00d141b3117107bea413db2257d59922757"},
|
||||
"ash_phoenix": {:hex, :ash_phoenix, "0.4.13", "f9eb06fbfbfd36360e38f9a22adc3a0a5bc3269fe6f7860c5f9978839ed6b04b", [:mix], [{:ash, "~> 1.37", [hex: :ash, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.5.6", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.15", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}], "hexpm", "490c029541168140f7ec60c1244f03b3072c3ac3ea3a02a0233136b143ee4210"},
|
||||
"ash_policy_authorizer": {:hex, :ash_policy_authorizer, "0.16.0", "18b2352facf8f860458bf81aeed481ced9a7e13e8eb2826e7ae714bf0fbd4792", [:mix], [{:ash, "~> 1.35 and >= 1.35.1", [hex: :ash, repo: "hexpm", optional: false]}], "hexpm", "40b2fd1071a60da1404c5a133f43bf416f5cb2c4f7313a7949b638340f482a61"},
|
||||
"ash_postgres": {:hex, :ash_postgres, "0.35.4", "f72b0780c839f588888985578aa0a03ae027f4e460fbeab4ddf209f97f794c77", [:mix], [{:ash, "~> 1.34 and >= 1.34.6", [hex: :ash, repo: "hexpm", optional: false]}, {:ecto_sql, "~> 3.5", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, ">= 0.0.0", [hex: :postgrex, repo: "hexpm", optional: false]}], "hexpm", "cba9e3ad50b1888dbb4623d80b88b75997f94912e088e69554259f9f00543a98"},
|
||||
|
|
Loading…
Reference in a new issue