From e404808c061bb841e85c299d95e7d33d6cbc75cd Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 7 Oct 2024 22:59:38 +0100 Subject: [PATCH] Add record count in records list --- lib/music_library_web/components/core_components.ex | 2 +- lib/music_library_web/live/record_live/index.html.heex | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/music_library_web/components/core_components.ex b/lib/music_library_web/components/core_components.ex index a02d2db5..6f598e68 100644 --- a/lib/music_library_web/components/core_components.ex +++ b/lib/music_library_web/components/core_components.ex @@ -477,7 +477,7 @@ defmodule MusicLibraryWeb.CoreComponents do ~H"""
- +
diff --git a/lib/music_library_web/live/record_live/index.html.heex b/lib/music_library_web/live/record_live/index.html.heex index f2f228a1..9d5f2220 100644 --- a/lib/music_library_web/live/record_live/index.html.heex +++ b/lib/music_library_web/live/record_live/index.html.heex @@ -18,6 +18,11 @@ +

+ Showing <%= Enum.count(@streams.records) %> + of <%= @record_list_params.total_entries %> + records +

<.table id="records" rows={@streams.records}
<%= col[:label] %>