[BasicUI] Hide header row for MJPEG video when visibility is disabled (#2764)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
pull/2771/head
lolodomo 2024-09-28 22:39:17 +02:00 committed by GitHub
parent 217fc060ee
commit 97d1d416ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ public class VideoRenderer extends AbstractWidgetRenderer {
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() : "");