Make sure toasts are synced
This commit is contained in:
@@ -10,7 +10,12 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<Layouts.app flash={@flash} current_section={@current_section} socket={@socket}>
|
||||
<Layouts.app
|
||||
flash={@flash}
|
||||
current_section={@current_section}
|
||||
socket={@socket}
|
||||
toasts_sync={assigns[:toasts_sync]}
|
||||
>
|
||||
<div>
|
||||
<header class="mb-2 gap-6">
|
||||
<div class="my-2 flex items-center justify-between gap-6">
|
||||
|
||||
@@ -11,7 +11,12 @@ defmodule MusicLibraryWeb.ScrobbleLive.Show do
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<Layouts.app flash={@flash} current_section={:scrobble} socket={@socket}>
|
||||
<Layouts.app
|
||||
flash={@flash}
|
||||
current_section={:scrobble}
|
||||
socket={@socket}
|
||||
toasts_sync={assigns[:toasts_sync]}
|
||||
>
|
||||
<div>
|
||||
<.alert
|
||||
:if={not @can_scrobble}
|
||||
|
||||
Reference in New Issue
Block a user