Revert "Show confetti when adding a record"
Shows up too often
This commit is contained in:
@@ -66,7 +66,6 @@ window.addEventListener("music_library:confetti", (_event) => {
|
||||
confetti({
|
||||
particleCount: 100,
|
||||
spread: 200,
|
||||
zIndex: 1500,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -97,11 +97,7 @@ defmodule MusicLibraryWeb.AddRecordComponent do
|
||||
tabindex="0"
|
||||
id={"actions-#{@release_group.id}-#{format}-import"}
|
||||
phx-click={
|
||||
JS.dispatch("music_library:confetti")
|
||||
|> JS.push("import",
|
||||
value: %{id: @release_group.id, format: format},
|
||||
page_loading: true
|
||||
)
|
||||
JS.push("import", value: %{id: @release_group.id, format: format}, page_loading: true)
|
||||
}
|
||||
>
|
||||
{format_label(format)}
|
||||
|
||||
Reference in New Issue
Block a user