Skip to content

Commit

Permalink
related PrestaShop#35591 - bug 9: add linkRowAction for attributes gr…
Browse files Browse the repository at this point in the history
…oup and attributes grids
  • Loading branch information
mattgoud committed Apr 23, 2024
1 parent 1f3b8d0 commit 9342399
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin-dev/themes/new-theme/js/pages/attribute-group/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import FiltersSubmitButtonEnablerExtension from '@components/grid/extension/filt
import ShowcaseCard from '@components/showcase-card/showcase-card';
import ShowcaseCardCloseExtension from '@components/showcase-card/extension/showcase-card-close-extension';
import PositionExtension from '@components/grid/extension/position-extension';
import LinkRowActionExtension from '@components/grid/extension/link-row-action-extension';

const {$} = window;

Expand All @@ -50,6 +51,7 @@ $(() => {
grid.addExtension(new BulkActionCheckboxExtension());
grid.addExtension(new FiltersSubmitButtonEnablerExtension());
grid.addExtension(new PositionExtension(grid));
grid.addExtension(new LinkRowActionExtension());

const showcaseCard = new ShowcaseCard('attributesShowcaseCard');
showcaseCard.addExtension(new ShowcaseCardCloseExtension());
Expand Down
2 changes: 2 additions & 0 deletions admin-dev/themes/new-theme/js/pages/attribute/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import BulkActionCheckboxExtension from '@components/grid/extension/bulk-action-
import ExportToSqlManagerExtension from '@components/grid/extension/export-to-sql-manager-extension';
import FiltersSubmitButtonEnablerExtension from '@components/grid/extension/filters-submit-button-enabler-extension';
import PositionExtension from '@components/grid/extension/position-extension';
import LinkRowActionExtension from '@components/grid/extension/link-row-action-extension';

const {$} = window;

Expand All @@ -48,4 +49,5 @@ $(() => {
grid.addExtension(new BulkActionCheckboxExtension());
grid.addExtension(new FiltersSubmitButtonEnablerExtension());
grid.addExtension(new PositionExtension(grid));
grid.addExtension(new LinkRowActionExtension());
});
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ protected function getColumns()
'extra_route_params' => [
'attributeId' => 'id_attribute',
],
'clickable_row' => true,
])
)
->add(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ protected function getColumns()
'route' => 'admin_attributes_index',
'route_param_name' => 'attributeGroupId',
'route_param_field' => 'id_attribute_group',
'clickable_row' => true,
])
)
->add((new LinkRowAction('edit'))
Expand Down

0 comments on commit 9342399

Please sign in to comment.