Make sure toasts are synced
This commit is contained in:
@@ -87,7 +87,12 @@ defmodule MusicLibraryWeb.ArtistLive.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 sm:px-6 lg:px-8">
|
||||
<header class="mt-1 gap-1">
|
||||
<div class="flex items-center justify-between">
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -16,7 +16,12 @@ defmodule MusicLibraryWeb.MaintenanceLive.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>
|
||||
<h3 class="mt-2 text-base font-semibold text-zinc-900 dark:text-zinc-200">
|
||||
{gettext("Records")}
|
||||
|
||||
@@ -16,7 +16,12 @@ defmodule MusicLibraryWeb.OnlineStoreTemplateLive.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={@list_params.query} />
|
||||
|
||||
@@ -19,7 +19,12 @@ defmodule MusicLibraryWeb.RecordSetLive.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-6">
|
||||
<div class="my-2 flex items-center justify-between gap-6">
|
||||
<.search_form query={@list_params.query} />
|
||||
|
||||
@@ -11,7 +11,12 @@ defmodule MusicLibraryWeb.RecordSetLive.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">
|
||||
<header class="mt-4 flex items-baseline justify-between">
|
||||
<div>
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -17,7 +17,12 @@ defmodule MusicLibraryWeb.ScrobbleRulesLive.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={@list_params.query} />
|
||||
|
||||
@@ -19,7 +19,12 @@ defmodule MusicLibraryWeb.ScrobbledTracksLive.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="gap-6">
|
||||
<div class="my-2">
|
||||
|
||||
@@ -15,7 +15,12 @@ defmodule MusicLibraryWeb.StatsLive.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]}
|
||||
>
|
||||
<.record_stats
|
||||
latest_record={@latest_record}
|
||||
collection_count={@collection_count}
|
||||
|
||||
@@ -19,7 +19,12 @@ defmodule MusicLibraryWeb.WishlistLive.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">
|
||||
<div class="my-2 flex items-center justify-between gap-6">
|
||||
<.search_form query={@record_list_params.query} />
|
||||
|
||||
@@ -24,7 +24,12 @@ defmodule MusicLibraryWeb.WishlistLive.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