mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-15 20:51:03 +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 %>
|
||||
<.modal
|
||||
id={id}
|
||||
on_cancel={focus("##{id}", "#delete-song-#{song.id}")}
|
||||
on_confirm={
|
||||
JS.push("delete", value: %{id: song.id})
|
||||
|> hide_modal(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 %>"?
|
||||
<:cancel>Cancel</:cancel>
|
||||
|
|
Loading…
Reference in a new issue