WIP: Vendoo 1.44.0 – UX Foundation & Guided Workspaces #29
@@ -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();
|
||||
})();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user