diff --git a/assets/js/app.js b/assets/js/app.js index eae42b5..a311dc6 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -296,7 +296,7 @@ let routeUpdated = () => { // Show progress bar on live navigation and form submits topbar.config({barColors: {0: "rgba(147, 51, 234, 1)"}, shadowColor: "rgba(0, 0, 0, .3)"}) -window.addEventListener("phx:page-loading-start", info => topbar.delayedShow(200)) +window.addEventListener("phx:page-loading-start", info => topbar.delayedShow(350)) window.addEventListener("phx:page-loading-stop", info => topbar.hide()) // Accessible routing diff --git a/lib/live_beats_web/live/player_live.ex b/lib/live_beats_web/live/player_live.ex index faf67d0..bec4b76 100644 --- a/lib/live_beats_web/live/player_live.ex +++ b/lib/live_beats_web/live/player_live.ex @@ -14,7 +14,7 @@ defmodule LiveBeatsWeb.PlayerLive do
-
+
diff --git a/lib/live_beats_web/live/profile_live.ex b/lib/live_beats_web/live/profile_live.ex index 76bd7d7..abd324b 100644 --- a/lib/live_beats_web/live/profile_live.ex +++ b/lib/live_beats_web/live/profile_live.ex @@ -430,7 +430,7 @@ defmodule LiveBeatsWeb.ProfileLive do defp assign_presences(socket) do socket = assign(socket, presences_count: 0, presences: %{}, presence_ids: %{}) - if profile = connected?(socket) && socket.assigns.profile do + if profile = socket.assigns.profile do profile |> LiveBeatsWeb.Presence.list_profile_users() |> Enum.reduce(socket, fn {_, presence}, acc -> assign_presence(acc, presence) end)