patched some local fails & errors; pipeline still expected to show cracks
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -21,3 +21,17 @@ const initGearMenus = () => {
|
||||
};
|
||||
|
||||
document.addEventListener('DOMContentLoaded', initGearMenus);
|
||||
|
||||
const appletContainerIds = new Set([
|
||||
'id_applets_container',
|
||||
'id_game_applets_container',
|
||||
'id_wallet_applets_container',
|
||||
]);
|
||||
|
||||
document.body.addEventListener('htmx:afterSwap', (e) => {
|
||||
if (!e.detail.target || !appletContainerIds.has(e.detail.target.id)) return;
|
||||
document.querySelectorAll('.gear-btn').forEach(gear => {
|
||||
const menu = document.getElementById(gear.dataset.menuTarget);
|
||||
if (menu) menu.style.display = 'none';
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user