Skip to content

Commit f381887

Browse files
committed
initialize sign-in-as-identity component and align data attribute
- Add the `SignInAsIdentity` component initialization to `app.js`. - Update the HTML data attribute in the PHP trait to use camelCase, matching the identifier used for JS registration.
1 parent e982e69 commit f381887

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

assets/js/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ import AdtJsComponents from 'adt-js-components';
8080
//
8181
// AdtJsComponents.init('components-panels-base-baseChartPanel', 'UI/Portal/Components/Panels/Base/BaseChartPanelControl');
8282
AdtJsComponents.init('select-account-form', '~UI/Components/Forms/SelectAccount');
83+
AdtJsComponents.init('portal-components-grids-traits-signInAsIdentity', '~UI/Components/Grids/Traits/SignInAsIdentity');
8384
// AdtJsComponents.init('portal-components-forms-dashboardFilter', 'UI/Portal/Components/Forms/DashboardFilter');
8485
// AdtJsComponents.init('portal-components-forms-changeLicenceForm', 'UI/Portal/Components/Forms/ChangeLicence');
8586
// AdtJsComponents.init('portal-components-forms-warehouseOperationForm', 'UI/Portal/Components/Forms/WarehouseOperation');

src/UI/Components/Grids/Traits/SignInAsIdentity/SignInAsIdentity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function injectSignInAsIdentity(): void
2121
{
2222
$this->onAnchor[] = function () {
2323
if ($this->_securityUser->isAllowed(AclResourceNameEnum::BACKOFFICE_IDENTITIES_SIGNAS)) {
24-
$this['grid']->addHtmlDataAttribute('data-adt-portal-components-grids-traits-sign-in-as-identity');
24+
$this['grid']->addHtmlDataAttribute('data-adt-portal-components-grids-traits-signInAsIdentity');
2525
$this['grid']
2626
->addAction('signInAsIdentity', '')
2727
->setRenderer(function ($item) {

0 commit comments

Comments
 (0)