Fix #4982: Add route to remove a post from a favorite group

This commit is contained in:
evazion
2022-05-02 15:43:44 -05:00
parent d2502a0c40
commit 17ffe3590a
5 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<% if @favorite_group.errors.any? %>
Danbooru.notice("<%= j @favorite_group.errors.full_messages.join("; ") %>");
<% else %>
Danbooru.notice("Removed post from favorite group <%= j @favorite_group.pretty_name %>");
<% end %>
$("#add-to-favgroup-dialog").dialog("close");