Skip to content

Commit 0dbd008

Browse files
committed
Code cleanup
1 parent f8bcadc commit 0dbd008

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bundle/Resources/public/js/scripts/quick.action.manager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
registeredActionButtons = registeredActionButtons.filter((btn) => btn.name !== name);
1515
recalculateButtonsLayout();
1616
};
17-
1817
const recalculateButtonsLayout = () => {
1918
const sortedButtons = registeredActionButtons.sort((a, b) => a.priority - b.priority);
2019
const buttonsToRender = sortedButtons.filter((el) => {
@@ -39,16 +38,17 @@
3938
selector.style.zIndex = buttonConfig.zIndex || 1040;
4039

4140
const bottomPosition = `${index === 0 ? 2 : (index + 1) * 3.2}rem`;
41+
4242
selector.style.bottom = bottomPosition;
4343
});
4444
};
45+
4546
return {
4647
registerButton,
4748
unregisterButton,
4849
recalculateButtonsLayout,
4950
};
5051
})();
5152

52-
window.ibexa = window.ibexa || {};
5353
global.ibexa.adminUiConfig.quickActionManager = QuickActionManager;
5454
})(window);

0 commit comments

Comments
 (0)