Skip to content

Commit a5d4650

Browse files
committed
Code cleanup
1 parent f8bcadc commit a5d4650

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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);

src/bundle/Resources/public/js/scripts/sidebar/side.panel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'.ibexa-side-panel .ibexa-btn--close, .ibexa-side-panel .ibexa-side-panel__btn--cancel',
55
);
66
const sidePanelTriggers = [...doc.querySelectorAll('.ibexa-side-panel-trigger')];
7-
const panelBackdrops = new Map(); // Mapa przechowująca powiązania panel -> backdrop
7+
const panelBackdrops = new Map();
88
const defaultBackdrop = new ibexa.core.Backdrop();
99
const removeBackdrop = (sidePanel) => {
1010
const backdrop = panelBackdrops.get(sidePanel) || defaultBackdrop;

0 commit comments

Comments
 (0)