Make equipment list rows clickable
This commit is contained in:
parent
ffb2b9576f
commit
223434dd99
1 changed files with 9 additions and 9 deletions
|
|
@ -56,7 +56,15 @@
|
|||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
<.table id="equipment" rows={@equipment}>
|
||||
<.table
|
||||
id="equipment"
|
||||
rows={@equipment}
|
||||
row_click={
|
||||
fn eq ->
|
||||
JS.navigate(~p"/orgs/#{@current_organization.slug}/equipment/#{eq.id}")
|
||||
end
|
||||
}
|
||||
>
|
||||
<:col :let={eq} label="Name">
|
||||
<span class="font-medium">{eq.name}</span>
|
||||
</:col>
|
||||
|
|
@ -92,14 +100,6 @@
|
|||
<% end %>
|
||||
</span>
|
||||
</:col>
|
||||
<:action :let={eq}>
|
||||
<.link
|
||||
navigate={~p"/orgs/#{@current_organization.slug}/equipment/#{eq.id}"}
|
||||
class="text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300"
|
||||
>
|
||||
View
|
||||
</.link>
|
||||
</:action>
|
||||
</.table>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue