live_beats/lib/live_beats_web/live/nav.ex

10 lines
243 B
Elixir
Raw Normal View History

2021-10-29 16:12:23 +00:00
defmodule LiveBeatsWeb.Nav do
import Phoenix.LiveView
2021-11-12 15:10:04 +00:00
alias LiveBeats.MediaLibrary
2021-11-01 01:19:52 +00:00
def on_mount(:default, _params, _session, socket) do
2021-11-12 15:10:04 +00:00
{:cont, assign(socket, :active_users, MediaLibrary.list_active_profiles(limit: 20))}
2021-10-29 16:12:23 +00:00
end
end