Skip to content

Commit

Permalink
update new menu_item config examples
Browse files Browse the repository at this point in the history
  • Loading branch information
charuwts committed Oct 13, 2023
1 parent e5ac256 commit 035fb47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docs/customization/customizing-the-backend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,9 @@ instance:
Spree::Backend::Config.configure do |config|
# ...
config.menu_items << config.class::MenuItem.new(
[:rejected_orders],
'ban',
label: :rejected_orders,
icon: 'ban',
url: '/admin/orders?q[rejected_eq]=true',
position: 0
)
end
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,9 @@ instance:
Spree::Backend::Config.configure do |config|
# ...
config.menu_items << config.class::MenuItem.new(
[:rejected_orders],
'ban',
label: :rejected_orders,
icon: 'ban',
url: '/admin/orders?q[rejected_eq]=true',
position: 0
)
end
```
Expand Down

0 comments on commit 035fb47

Please sign in to comment.