From 1d17d1b7bceee6f7559cfdb6aca4dce1b30c956f Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 2 Aug 2023 18:00:11 -0400 Subject: [PATCH] fix: fix links to show related resources --- lib/ash_admin/components/resource/show.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash_admin/components/resource/show.ex b/lib/ash_admin/components/resource/show.ex index 1bad19f..1762a69 100644 --- a/lib/ash_admin/components/resource/show.ex +++ b/lib/ash_admin/components/resource/show.ex @@ -146,7 +146,7 @@ defmodule AshAdmin.Components.Resource.Show do
<.link :if={AshAdmin.Resource.show_action(@destination)} - navigate={"#{@prefix}?api=#{AshAdmin.Api.name(@api)}&resource=#{AshAdmin.Resource.name(@resource)}&tab=show&table=#{@context[:data_layer][:table]}&primary_key=#{encode_primary_key(@record)}"} + navigate={"#{@prefix}?api=#{AshAdmin.Api.name(@api)}&resource=#{AshAdmin.Resource.name(@destination)}&tab=show&table=#{@context[:data_layer][:table]}&primary_key=#{encode_primary_key(@record)}"} class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" > Show