Migrate assets to use Webpacker
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<% if @api_key.errors.any? %>
|
||||
Danbooru.error("<%= j @api_key.errors.full_messages.join(', ') %>");
|
||||
$(window).trigger("danbooru:error", "<%= j @api_key.errors.full_messages.join(', ') %>");
|
||||
<% else %>
|
||||
$("#api-key").text("<%= j @api_key.key %>");
|
||||
$("#api-key-created").html("<%= j compact_time @api_key.created_at %>");
|
||||
$("#api-key-updated").html("<%= j compact_time @api_key.updated_at %>");
|
||||
|
||||
Danbooru.notice("API key regenerated.");
|
||||
$(window).trigger("danbooru:notice", "API key regenerated.");
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user