Skip to content

Commit

Permalink
Merge pull request #50 from Setono/42-button
Browse files Browse the repository at this point in the history
Add our own button for channel configurations
  • Loading branch information
loevgaard authored Aug 29, 2022
2 parents 341b5df + 84e1a97 commit a356f7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/Resources/config/app/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ sylius_grid:
templates:
action:
blacklist_customer: "@SetonoSyliusTrustpilotPlugin/admin/grid/action/blacklist_customer.html.twig"
channel_configurations: "@SetonoSyliusTrustpilotPlugin/admin/grid/action/channel_configurations.html.twig"

sylius_ui:
events:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ sylius_grid:
actions:
main:
channel_configurations:
type: create
label: setono_sylius_trustpilot.ui.channel_configurations
options:
link:
route: setono_sylius_trustpilot_admin_channel_configuration_index
type: channel_configurations
item:
blacklist_customer:
type: blacklist_customer
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %}

{{ buttons.default(path('setono_sylius_trustpilot_admin_channel_configuration_index'), 'setono_sylius_trustpilot.ui.channel_configurations', null, 'cog', 'gray') }}

0 comments on commit a356f7a

Please sign in to comment.