tree view dashboard metaconsole

This commit is contained in:
Jonathan 2023-03-29 16:50:17 +02:00
parent a64f9e98b3
commit 8c3b5d650d
2 changed files with 16 additions and 27 deletions

View File

@ -655,7 +655,7 @@ var TreeController = {
$content.append(
'<div class="node-icon"><div class="node-icon-container"><img src="' +
(controller.baseURL.length > 0 ? controller.baseURL : "") +
(controller.meta != undefined && controller.meta == 1
(controller.baseURL.indexOf("meta") !== -1
? "../../images/"
: "images/") +
element.icon +
@ -1078,7 +1078,10 @@ var TreeController = {
(controller.baseURL.length > 0
? controller.baseURL
: "") +
'images/module-graph.svg" /> '
(controller.baseURL.indexOf("meta") !== -1
? "../../images/"
: "images/") +
'module-graph.svg" /> '
);
}
@ -1123,7 +1126,10 @@ var TreeController = {
(controller.baseURL.length > 0
? controller.baseURL
: "") +
'images/simple-value.svg" /> '
(controller.baseURL.indexOf("meta") !== -1
? "../../images/"
: "images/") +
'simple-value.svg" /> '
);
$dataImage
.addClass("module-data")

View File

@ -134,12 +134,7 @@ class TreeViewWidget extends Widget
) {
global $config;
if (is_metaconsole() === true) {
ui_require_css_file('tree_meta');
} else {
ui_require_css_file('tree');
}
ui_require_css_file('fixed-bottom-box');
// WARNING: Do not edit. This chunk must be in the constructor.
@ -559,11 +554,7 @@ class TreeViewWidget extends Widget
$height = $size['height'];
// Css Files.
if (is_metaconsole() === true) {
\ui_require_css_file('tree_meta', 'include/styles/', true);
} else {
\ui_require_css_file('tree', 'include/styles/', true);
}
if ($config['style'] == 'pandora_black' && !is_metaconsole()) {
\ui_require_css_file('pandora_black', 'include/styles/', true);
@ -576,19 +567,11 @@ class TreeViewWidget extends Widget
'include/javascript/i18n/'
);
if (is_metaconsole() === true) {
\ui_require_javascript_file(
'TreeControllerMeta',
'include/javascript/tree/',
true
);
} else {
\ui_require_javascript_file(
'TreeController',
'include/javascript/tree/',
true
);
}
\ui_require_javascript_file(
'fixed-bottom-box',