From 968d422e33e30debaf417106ff04f8e314c408d3 Mon Sep 17 00:00:00 2001 From: Laurent Garnier Date: Sat, 21 Sep 2024 12:13:27 +0200 Subject: [PATCH] [BasicUI] Hide header row for MJPEG video when visibility is disabled Signed-off-by: Laurent Garnier --- .../org/openhab/ui/basic/internal/render/VideoRenderer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/VideoRenderer.java b/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/VideoRenderer.java index 9ed709f3e9..972db9f96a 100644 --- a/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/VideoRenderer.java +++ b/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/VideoRenderer.java @@ -68,6 +68,8 @@ public EList renderWidget(Widget w, StringBuilder sb, String sitemap) th String snippet = (("video".equals(snippetName) && showHeaderRow) ? getSnippet("header_row") : "") + getSnippet(snippetName); + snippet = snippet.replace("%header_visibility_class%", + showHeaderRow ? "%visibility_class%" : "mdl-form__row--hidden"); snippet = snippet.replace("%header_row%", ("image".equals(snippetName) || showHeaderRow) ? Boolean.valueOf(showHeaderRow).toString() : "");