Skip to content

Commit

Permalink
show the button in edit mode too
Browse files Browse the repository at this point in the history
  • Loading branch information
jambun committed May 23, 2017
1 parent e05649f commit c790130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/views/layout_head.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if @resource && controller_name == 'resources' && action_name == 'show' %>
<% if @resource && controller_name == 'resources' && ['show', 'edit'].include?(action_name) %>
<%= stylesheet_link_tag "#{AppConfig[:frontend_prefix]}assets/work_order.css" %>
<%= javascript_include_tag "#{AppConfig[:frontend_prefix]}assets/work_order.js" %>
<script type="text/template" id="workOrderButtonTemplate">
Expand Down

0 comments on commit c790130

Please sign in to comment.