From 53927b05a7da1b4a5a8007c445cdbf3d492672a2 Mon Sep 17 00:00:00 2001
From: Carlos Santos <4a.santos@gmail.com>
Date: Thu, 11 Dec 2025 17:21:28 +0100
Subject: [PATCH] Refactor template syntax to use @if directives for
conditional rendering
- Updated panel.component.html to replace *ngIf with @if for chat, participants, background effects, settings, activities, and external panels.
- Modified participants-panel.component.html to use @if for local and remote participants rendering.
- Changed settings-panel.component.html to utilize @if for menu options based on visibility conditions.
- Refactored pre-join.component.html to implement @if for participant name input and error message display.
- Adjusted session.component.html to use @if for toolbar template rendering.
- Updated audio-devices.component.html and video-devices.component.html to replace *ngIf with @if for dropdown icons.
- Refactored stream.component.html to use @if for participant name and audio wave display.
- Modified toolbar-media-buttons.component.html and toolbar-panel-buttons.component.html to implement @if for button visibility.
- Updated toolbar.component.html to use @if for recording time display.
- Refactored videoconference.component.html to replace *ngIf with @if for pre-join and template rendering.
---
.../admin-dashboard.component.html | 92 +++----
.../admin-login/admin-login.component.html | 68 ++---
.../components/layout/layout.component.html | 70 ++---
.../activities-panel.component.html | 40 +--
.../broadcasting-activity.component.html | 38 +--
.../chat-panel/chat-panel.component.html | 24 +-
.../lib/components/panel/panel.component.html | 25 +-
.../participants-panel.component.html | 24 +-
.../settings-panel.component.html | 146 ++++++-----
.../pre-join/pre-join.component.html | 76 +++---
.../components/session/session.component.html | 8 +-
.../audio-devices.component.html | 8 +-
.../video-devices.component.html | 8 +-
.../components/stream/stream.component.html | 189 ++++++++------
.../lib/components/stream/stream.component.ts | 6 +-
.../toolbar-media-buttons.component.html | 27 +-
.../toolbar-panel-buttons.component.html | 240 +++++++++---------
.../components/toolbar/toolbar.component.html | 4 +-
.../videoconference.component.html | 19 +-
19 files changed, 606 insertions(+), 506 deletions(-)
diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/admin/admin-dashboard/admin-dashboard.component.html b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/admin/admin-dashboard/admin-dashboard.component.html
index 17f1b7695..255fbf1d4 100644
--- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/admin/admin-dashboard/admin-dashboard.component.html
+++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/admin/admin-dashboard/admin-dashboard.component.html
@@ -19,12 +19,16 @@
autocomplete="off"
[(ngModel)]="searchValue"
>
-
-
+ @if (searchValue) {
+
+ }
+ @if (!searchValue) {
+
+ }