mirror of
https://github.com/fly-apps/live_beats.git
synced 2025-02-25 20:26:16 +00:00
Formatting
This commit is contained in:
parent
337931e21e
commit
95c69a4aa5
1 changed files with 3 additions and 2 deletions
|
@ -51,12 +51,13 @@ defmodule LiveBeatsWeb.ProfileLive do
|
||||||
<%= for song <- if(@owns_profile?, do: @songs, else: []), id = "delete-modal-#{song.id}" do %>
|
<%= for song <- if(@owns_profile?, do: @songs, else: []), id = "delete-modal-#{song.id}" do %>
|
||||||
<.modal
|
<.modal
|
||||||
id={id}
|
id={id}
|
||||||
on_cancel={focus("##{id}", "#delete-song-#{song.id}")}
|
|
||||||
on_confirm={
|
on_confirm={
|
||||||
JS.push("delete", value: %{id: song.id})
|
JS.push("delete", value: %{id: song.id})
|
||||||
|> hide_modal(id)
|
|> hide_modal(id)
|
||||||
|> focus_closest("#song-#{song.id}")
|
|> focus_closest("#song-#{song.id}")
|
||||||
|> hide("#song-#{song.id}")}
|
|> hide("#song-#{song.id}")
|
||||||
|
}
|
||||||
|
on_cancel={focus("##{id}", "#delete-song-#{song.id}")}
|
||||||
>
|
>
|
||||||
Are you sure you want to delete "<%= song.title %>"?
|
Are you sure you want to delete "<%= song.title %>"?
|
||||||
<:cancel>Cancel</:cancel>
|
<:cancel>Cancel</:cancel>
|
||||||
|
|
Loading…
Reference in a new issue