diff --git a/pandora_console/include/javascript/pandora_dashboards.js b/pandora_console/include/javascript/pandora_dashboards.js index a322dbe4d7..efefaf1195 100644 --- a/pandora_console/include/javascript/pandora_dashboards.js +++ b/pandora_console/include/javascript/pandora_dashboards.js @@ -44,12 +44,12 @@ function update_dashboard(data) { // eslint-disable-next-line no-unused-vars function showGroup() { $("#li-group").removeClass("hidden"); - var private = $("#private").prop("checked"); - if (private) { + $("#id_group").removeAttr("required"); $("#li-group").hide(); } else { + $("#id_group").attr("required", true); $("#li-group").show(); } } diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index 5c4bfe3e88..ecf0c292dc 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -649,7 +649,6 @@ form ul.form_flex { justify-content: center; height: 100%; width: 100%; - background-color: #222; } .container-layout { diff --git a/pandora_console/views/dashboard/cell.php b/pandora_console/views/dashboard/cell.php index 2b16a73316..1ec35ae777 100644 --- a/pandora_console/views/dashboard/cell.php +++ b/pandora_console/views/dashboard/cell.php @@ -73,12 +73,22 @@ if ($manageDashboards !== 0) { $output .= ''; $output .= ''; -if ($config['style'] === 'pandora') { - $options['background'] = '#fff'; -} +if (empty($options['background']) === true) { + if ($config['style'] === 'pandora') { + $options['background'] = '#ffffff'; + } -if ($config['style'] === 'pandora_black') { - $options['background'] = '#222'; + if ($config['style'] === 'pandora_black') { + $options['background'] = '#222222'; + } +} else if ($options['background'] === '#ffffff' + && $config['style'] === 'pandora_black' +) { + $options['background'] = '#222222'; +} else if ($options['background'] === '#222222' + && $config['style'] === 'pandora' +) { + $options['background'] = '#ffffff'; } if ((int) $cellData['id_widget'] !== 0) {