@@ -407,17 +407,17 @@ function formatActionColumnAsDropdown() {
407407 const actionColumnIndex = $ (' #crudTable' ).find (' th[data-action-column=true]' ).index ();
408408 if (actionColumnIndex === - 1 ) return ;
409409
410- const minimumToDrop = $ (' #crudTable' ).data (' line-buttons-as-dropdown-minimum-to-drop ' );
411- const dropAfter = $ (' #crudTable' ).data (' line-buttons-as-dropdown-drop-after ' );
410+ const minimumButtonsToBuildDropdown = $ (' #crudTable' ).data (' line-buttons-as-dropdown-minimum' );
411+ const buttonsToShowBeforeDropdown = $ (' #crudTable' ).data (' line-buttons-as-dropdown-show-before-dropdown ' );
412412
413413 $ (' #crudTable tbody tr' ).each (function (i , tr ) {
414414 const actionCell = $ (tr).find (' td' ).eq (actionColumnIndex);
415415 const actionButtons = actionCell .find (' a.btn.btn-link' );
416416 if (actionCell .find (' .actions-buttons-column' ).length ) return ;
417- if (actionButtons .length < minimumToDrop ) return ;
417+ if (actionButtons .length < minimumButtonsToBuildDropdown ) return ;
418418
419419 // Prepare buttons as dropdown items
420- const dropdownItems = actionButtons .slice (dropAfter ).map ((index , action ) => {
420+ const dropdownItems = actionButtons .slice (buttonsToShowBeforeDropdown ).map ((index , action ) => {
421421 $ (action).addClass (' dropdown-item' ).removeClass (' btn btn-sm btn-link' );
422422 $ (action).find (' i' ).addClass (' me-2 text-primary' );
423423 return action;
@@ -432,7 +432,7 @@ function formatActionColumnAsDropdown() {
432432 actionCell .prepend (' <a class="btn btn-sm px-2 py-1 btn-outline-primary dropdown-toggle actions-buttons-column" href="#" data-toggle="dropdown" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false">{{ trans (' backpack::crud.actions' ) } } </a>' );
433433
434434 // Move the remaining buttons outside the dropdown
435- const remainingButtons = actionButtons .slice (0 , dropAfter );
435+ const remainingButtons = actionButtons .slice (0 , buttonsToShowBeforeDropdown );
436436 actionCell .prepend (remainingButtons);
437437 }
438438 });
0 commit comments