app/views/spree/admin/variants/index.html.erb in spree_backend-3.7.14.1 vs app/views/spree/admin/variants/index.html.erb in spree_backend-4.0.0.beta
- old
+ new
@@ -49,17 +49,17 @@
<% if @product.empty_option_values? %>
<% if can?(:modify, Spree::ProductOptionType) %>
<p class='first_add_option_types no-objects-found' data-hook="first_add_option_types">
<%= Spree.t(:to_add_variants_you_must_first_define) %>
<%= link_to(Spree.t(:option_types), spree.admin_product_url(@product)) %>
- <% if can?(:display, Spree::OptionType) && can?([:create, :display], Spree::OptionValue) %>
+ <% if can?(:read, Spree::OptionType) && can?([:create, :read], Spree::OptionValue) %>
<%= Spree.t(:and) %>
<%= link_to Spree.t(:option_values), spree.admin_option_types_url %>
<% end %>
</p>
<% end %>
<% else %>
<% content_for :page_actions do %>
<%= button_link_to(Spree.t(:new_variant), spree.new_admin_product_variant_url(@product), { remote: :true, icon: 'add', :'data-update' => 'new_variant', class: 'btn-success', id: 'new_var_link' }) if can? :create, Spree::Variant %>
- <%= button_link_to (@deleted.blank? ? Spree.t(:show_deleted) : Spree.t(:show_active)), spree.admin_product_variants_url(@product, deleted: @deleted.blank? ? "on" : "off"), { class: 'btn-default', icon: 'filter' } %>
+ <%= button_link_to (@deleted.blank? ? Spree.t(:show_deleted) : Spree.t(:show_active)), spree.admin_product_variants_url(@product, deleted: @deleted.blank? ? "on" : "off"), { class: 'btn-outline-secondary', icon: 'filter' } %>
<% end %>
<% end %>