mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-25 09:20:59 +00:00
fix typo
This commit is contained in:
parent
e5c663ab38
commit
9262895d13
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ defmodule LiveBeatsWeb.Nav do
|
||||||
active_tab =
|
active_tab =
|
||||||
case {socket.view, socket.assigns.live_action} do
|
case {socket.view, socket.assigns.live_action} do
|
||||||
{ProfileLive, _} ->
|
{ProfileLive, _} ->
|
||||||
if params["profile_username"] == current_user_profile_userame(socket) do
|
if params["profile_username"] == current_user_profile_username(socket) do
|
||||||
:profile
|
:profile
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ defmodule LiveBeatsWeb.Nav do
|
||||||
{:cont, assign(socket, active_tab: active_tab)}
|
{:cont, assign(socket, active_tab: active_tab)}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp current_user_profile_userame(socket) do
|
defp current_user_profile_username(socket) do
|
||||||
if user = socket.assigns.current_user do
|
if user = socket.assigns.current_user do
|
||||||
user.username
|
user.username
|
||||||
end
|
end
|
||||||
|
|
|
@ -58,7 +58,7 @@ defmodule LiveBeatsWeb.ProfileLive do
|
||||||
module={SongRowComponent}
|
module={SongRowComponent}
|
||||||
rows={@songs}
|
rows={@songs}
|
||||||
row_id={fn song -> "song-#{song.id}" end}
|
row_id={fn song -> "song-#{song.id}" end}
|
||||||
owns_profile?= {@owns_profile?}
|
owns_profile?={@owns_profile?}
|
||||||
>
|
>
|
||||||
<:col let={%{song: song}} label="Title"><%= song.title %></:col>
|
<:col let={%{song: song}} label="Title"><%= song.title %></:col>
|
||||||
<:col let={%{song: song}} label="Artist"><%= song.artist %></:col>
|
<:col let={%{song: song}} label="Artist"><%= song.artist %></:col>
|
||||||
|
|
Loading…
Reference in a new issue