From 6d8b3f7441a71d2116dbe906d40814f19b55d13a Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 30 Apr 2024 08:55:51 +0200 Subject: [PATCH] #13503 fix hover add cell dashboard --- .../include/javascript/pandora_dashboards.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pandora_console/include/javascript/pandora_dashboards.js b/pandora_console/include/javascript/pandora_dashboards.js index 853379a2aa..b6e20aa4ba 100644 --- a/pandora_console/include/javascript/pandora_dashboards.js +++ b/pandora_console/include/javascript/pandora_dashboards.js @@ -232,6 +232,9 @@ function initialiceLayout(data) { }); if (!$("#checkbox-edit-mode").is(":checked")) { + $("#add-widget") + .parent() + .addClass("invisible_important"); $(".add-widget").hide(); } else { $(".new-widget-message").hide(); @@ -549,6 +552,9 @@ function initialiceLayout(data) { grid.resizable(".grid-stack-item", true); grid.float(false); $(".header-options").show(); + $("#add-widget") + .parent() + .removeClass("invisible_important"); $(".add-widget").show(); $(".new-widget-message").hide(); $("#container-layout").addClass("container-layout"); @@ -558,6 +564,9 @@ function initialiceLayout(data) { grid.resizable(".grid-stack-item", false); grid.float(true); $(".header-options").hide(); + $("#add-widget") + .parent() + .addClass("invisible_important"); $(".add-widget").hide(); $(".new-widget-message").show(); $("#container-layout").removeClass("container-layout"); @@ -776,6 +785,9 @@ function initialiceLayout(data) { }); if (!$("#checkbox-edit-mode").is(":checked")) { + $("#add-widget") + .parent() + .addClass("invisible_important"); $(".add-widget").hide(); } else { $(".new-widget-message").hide();