Skip to content

Commit

Permalink
[BasicUI] Hide header row for MJPEG video when visibility is disabled (
Browse files Browse the repository at this point in the history
…#2764)

Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo authored Sep 28, 2024
1 parent 217fc06 commit 97d1d41
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public EList<Widget> 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() : "");

Expand Down

0 comments on commit 97d1d41

Please sign in to comment.