This commit is contained in:
Albert Yi
2018-06-05 14:40:55 -07:00
parent 2ec9aad320
commit c75f520055
7 changed files with 67 additions and 10 deletions

View File

@@ -17,7 +17,7 @@
<% if @artist.is_active? %>
<li id="artist-delete"><%= link_to "Delete", artist_path(@artist), method: :delete, data: {confirm: "Are you sure you want to delete this artist?"} %></li>
<% else %>
<li><%= link_to "Undelete", artist_path(@artist), method: :put, data: {confirm: "Are you sure you want to undelete this artist?", params: {"artist[is_active]" => true}} %></li>
<li><%= link_to "Undelete", artist_path(@artist, format: "js"), method: :put, data: {confirm: "Are you sure you want to undelete this artist?", params: "artist[is_active]=true"}, remote: true %></li>
<% end %>
<% end %>
<% if CurrentUser.is_admin? %>

View File

@@ -0,0 +1 @@
location.reload();