Make sure toasts are synced
This commit is contained in:
@@ -87,7 +87,12 @@ defmodule MusicLibraryWeb.ArtistLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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">
|
<div class="mt-4 px-4 sm:px-6 lg:px-8">
|
||||||
<header class="mt-1 gap-1">
|
<header class="mt-1 gap-1">
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
|
|||||||
@@ -21,7 +21,12 @@ defmodule MusicLibraryWeb.CollectionLive.Index do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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">
|
<header class="mb-2 gap-6">
|
||||||
<div class="my-2 flex items-center justify-between gap-6">
|
<div class="my-2 flex items-center justify-between gap-6">
|
||||||
<.search_form query={@record_list_params.query} />
|
<.search_form query={@record_list_params.query} />
|
||||||
|
|||||||
@@ -31,7 +31,12 @@ defmodule MusicLibraryWeb.CollectionLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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="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">
|
<div class="drop-shadow-sm xl:col-span-2">
|
||||||
<.record_cover
|
<.record_cover
|
||||||
|
|||||||
@@ -16,7 +16,12 @@ defmodule MusicLibraryWeb.MaintenanceLive.Index do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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>
|
<div>
|
||||||
<h3 class="mt-2 text-base font-semibold text-zinc-900 dark:text-zinc-200">
|
<h3 class="mt-2 text-base font-semibold text-zinc-900 dark:text-zinc-200">
|
||||||
{gettext("Records")}
|
{gettext("Records")}
|
||||||
|
|||||||
@@ -16,7 +16,12 @@ defmodule MusicLibraryWeb.OnlineStoreTemplateLive.Index do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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">
|
<header class="mb-2 gap-6">
|
||||||
<div class="my-2 flex items-center justify-between gap-6">
|
<div class="my-2 flex items-center justify-between gap-6">
|
||||||
<.search_form query={@list_params.query} />
|
<.search_form query={@list_params.query} />
|
||||||
|
|||||||
@@ -19,7 +19,12 @@ defmodule MusicLibraryWeb.RecordSetLive.Index do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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">
|
<header class="mb-6">
|
||||||
<div class="my-2 flex items-center justify-between gap-6">
|
<div class="my-2 flex items-center justify-between gap-6">
|
||||||
<.search_form query={@list_params.query} />
|
<.search_form query={@list_params.query} />
|
||||||
|
|||||||
@@ -11,7 +11,12 @@ defmodule MusicLibraryWeb.RecordSetLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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">
|
<div class="mt-4">
|
||||||
<header class="mt-4 flex items-baseline justify-between">
|
<header class="mt-4 flex items-baseline justify-between">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -10,7 +10,12 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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>
|
<div>
|
||||||
<header class="mb-2 gap-6">
|
<header class="mb-2 gap-6">
|
||||||
<div class="my-2 flex items-center justify-between gap-6">
|
<div class="my-2 flex items-center justify-between gap-6">
|
||||||
|
|||||||
@@ -11,7 +11,12 @@ defmodule MusicLibraryWeb.ScrobbleLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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>
|
<div>
|
||||||
<.alert
|
<.alert
|
||||||
:if={not @can_scrobble}
|
:if={not @can_scrobble}
|
||||||
|
|||||||
@@ -17,7 +17,12 @@ defmodule MusicLibraryWeb.ScrobbleRulesLive.Index do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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">
|
<header class="mb-2 gap-6">
|
||||||
<div class="my-2 flex items-center justify-between gap-6">
|
<div class="my-2 flex items-center justify-between gap-6">
|
||||||
<.search_form query={@list_params.query} />
|
<.search_form query={@list_params.query} />
|
||||||
|
|||||||
@@ -19,7 +19,12 @@ defmodule MusicLibraryWeb.ScrobbledTracksLive.Index do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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>
|
<div>
|
||||||
<header class="gap-6">
|
<header class="gap-6">
|
||||||
<div class="my-2">
|
<div class="my-2">
|
||||||
|
|||||||
@@ -15,7 +15,12 @@ defmodule MusicLibraryWeb.StatsLive.Index do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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
|
<.record_stats
|
||||||
latest_record={@latest_record}
|
latest_record={@latest_record}
|
||||||
collection_count={@collection_count}
|
collection_count={@collection_count}
|
||||||
|
|||||||
@@ -19,7 +19,12 @@ defmodule MusicLibraryWeb.WishlistLive.Index do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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">
|
<header class="mb-2">
|
||||||
<div class="my-2 flex items-center justify-between gap-6">
|
<div class="my-2 flex items-center justify-between gap-6">
|
||||||
<.search_form query={@record_list_params.query} />
|
<.search_form query={@record_list_params.query} />
|
||||||
|
|||||||
@@ -24,7 +24,12 @@ defmodule MusicLibraryWeb.WishlistLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~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="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">
|
<div class="drop-shadow-sm xl:col-span-2">
|
||||||
<.record_cover
|
<.record_cover
|
||||||
|
|||||||
Reference in New Issue
Block a user