Make sure toasts are synced
This commit is contained in:
@@ -21,7 +21,12 @@ defmodule MusicLibraryWeb.CollectionLive.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]}
|
||||
>
|
||||
<header class="mb-2 gap-6">
|
||||
<div class="my-2 flex items-center justify-between gap-6">
|
||||
<.search_form query={@record_list_params.query} />
|
||||
|
||||
@@ -31,7 +31,12 @@ defmodule MusicLibraryWeb.CollectionLive.Show 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 class="mt-4 px-4 md:gap-x-4 lg:grid lg:grid-cols-2 xl:grid-cols-5">
|
||||
<div class="drop-shadow-sm xl:col-span-2">
|
||||
<.record_cover
|
||||
|
||||
Reference in New Issue
Block a user