feat(actions): load action registry before global navigation

This commit is contained in:
Masterluke77
2026-07-14 13:57:12 +02:00
parent 7af6fbf618
commit e434a3d7d0
+19 -1
View File
@@ -18,6 +18,23 @@
}
}
function loadActionRegistryAssets() {
if (!document.querySelector('link[data-ux-action-registry]')) {
const stylesheet = document.createElement('link');
stylesheet.rel = 'stylesheet';
stylesheet.href = '/action-registry.css?v=1.44.0';
stylesheet.setAttribute('data-ux-action-registry', 'style');
document.head.append(stylesheet);
}
if (!document.querySelector('script[data-ux-action-registry]')) {
const script = document.createElement('script');
script.src = '/action-registry.js?v=1.44.0';
script.async = false;
script.setAttribute('data-ux-action-registry', 'script');
document.body.append(script);
}
}
function loadGlobalNavigationAssets() {
if (!document.querySelector('link[data-ux-global-navigation]')) {
const stylesheet = document.createElement('link');
@@ -36,6 +53,7 @@
}
loadCommandPlatformAssets();
loadActionRegistryAssets();
loadGlobalNavigationAssets();
const moduleRoot = document.getElementById('admin-modules-panel');
@@ -227,4 +245,4 @@
setupModules();
setupExtensions();
})();
})();