- content_for :nav do
  = link_to @note, method: :delete do
    %i.material-icons clear
  = link_to edit_note_path(@note), class: "toggle-preview" do
    %i.material-icons mode_edit

.js-task-list-container#note
  = markdown @note
  = render "form", note: @note, hidden: true

- content_for :nav do
  = link_to @note, method: :delete,
      data: { confirm: "This note will be deleted. Are you sure?" } do
    %i.material-icons clear
  = link_to edit_note_path(@note), class: "toggle-preview" do
    %i.material-icons mode_edit

.js-task-list-container#note
  = markdown @note
  = render "form", note: @note, hidden: true

Add confirmation message on deleting
Add confirmation message on deleting
