@@ -54,7 +54,15 @@ defmodule AshAdmin.Components.Resource.Table do
5454 < td :if = { @ actions && actions? ( @ resource ) } >
5555 < div class = "flex h-max justify-items-center " >
5656 < div :if = { AshAdmin.Resource . show_action ( @ resource ) } >
57- < . link navigate = { admin_path ( @ prefix , domain: AshAdmin.Domain . name ( @ domain ) , resource: AshAdmin.Resource . name ( @ resource ) , table: @ table , primary_key: encode_primary_key ( record ) , action_type: "read" ) } >
57+ < . link navigate = {
58+ admin_path ( @ prefix ,
59+ domain: AshAdmin.Domain . name ( @ domain ) ,
60+ resource: AshAdmin.Resource . name ( @ resource ) ,
61+ table: @ table ,
62+ primary_key: encode_primary_key ( record ) ,
63+ action_type: "read"
64+ )
65+ } >
5866 < . icon
5967 name = "hero-information-circle-solid "
6068 class = "h-5 w-5 text-slate-500 dark:text-slate-400 "
@@ -63,7 +71,15 @@ defmodule AshAdmin.Components.Resource.Table do
6371 </ div >
6472
6573 < div :if = { AshAdmin.Helpers . primary_action ( @ resource , :update ) } >
66- < . link navigate = { admin_path ( @ prefix , domain: AshAdmin.Domain . name ( @ domain ) , resource: AshAdmin.Resource . name ( @ resource ) , action_type: "update" , table: @ table , primary_key: encode_primary_key ( record ) ) } >
74+ < . link navigate = {
75+ admin_path ( @ prefix ,
76+ domain: AshAdmin.Domain . name ( @ domain ) ,
77+ resource: AshAdmin.Resource . name ( @ resource ) ,
78+ action_type: "update" ,
79+ table: @ table ,
80+ primary_key: encode_primary_key ( record )
81+ )
82+ } >
6783 < . icon
6884 name = "hero-pencil-solid "
6985 class = "h-5 w-5 text-slate-500 dark:text-slate-400 "
@@ -72,7 +88,15 @@ defmodule AshAdmin.Components.Resource.Table do
7288 </ div >
7389
7490 < div :if = { AshAdmin.Helpers . primary_action ( @ resource , :destroy ) } >
75- < . link navigate = { admin_path ( @ prefix , domain: AshAdmin.Domain . name ( @ domain ) , resource: AshAdmin.Resource . name ( @ resource ) , action_type: "destroy" , table: @ table , primary_key: encode_primary_key ( record ) ) } >
91+ < . link navigate = {
92+ admin_path ( @ prefix ,
93+ domain: AshAdmin.Domain . name ( @ domain ) ,
94+ resource: AshAdmin.Resource . name ( @ resource ) ,
95+ action_type: "destroy" ,
96+ table: @ table ,
97+ primary_key: encode_primary_key ( record )
98+ )
99+ } >
76100 < . icon
77101 name = "hero-x-circle-solid "
78102 class = "h-5 w-5 text-slate-500 dark:text-slate-400 "
0 commit comments