Skip to content

Commit

Permalink
Merge pull request #3401 from softr8/fix/admin-store-credit-tab
Browse files Browse the repository at this point in the history
Fixing admin store credit reasons tab not expanded
  • Loading branch information
tvdeyen authored Oct 25, 2019
2 parents 517388a + c21b084 commit 7286e36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<% if can?(:display, Spree::RefundReason) || can?(:display, Spree::ReimbursementType) ||
can?(:display, Spree::ReturnReason) || can?(:display, Spree::AdjustmentReason) %>
<%= tab :checkout, url: spree.admin_refund_reasons_path, match_path: %r(refund_reasons|reimbursement_types|return_reasons|adjustment_reasons) %>
<%= tab :checkout, url: spree.admin_refund_reasons_path, match_path: %r(refund_reasons|reimbursement_types|return_reasons|adjustment_reasons|store_credit_reasons) %>
<% end %>

<% if can?(:display, Spree::ShippingMethod) || can?(:display, Spree::ShippingCategory) || can?(:display, Spree::StockLocation) %>
Expand Down
3 changes: 2 additions & 1 deletion backend/lib/spree/backend_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class BackendConfiguration < Preferences::Configuration
:payment_methods, :shipping_methods,
:shipping_categories, :stock_locations,
:refund_reasons, :reimbursement_types,
:return_reasons, :adjustment_reasons]
:return_reasons, :adjustment_reasons,
:store_credit_reasons]
PROMOTION_TABS ||= [:promotions, :promotion_categories]
STOCK_TABS ||= [:stock_items]
USER_TABS ||= [:users, :store_credits]
Expand Down

0 comments on commit 7286e36

Please sign in to comment.