From e70dc6619fe5b1353af830639339ddaacf75c09b Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Thu, 15 Jan 2026 14:50:48 +0100 Subject: [PATCH] frontend: Refactors rooms lists component to use Angular signals Migrates the rooms lists component to leverage Angular's signal-based inputs. This improves change detection and simplifies data flow within the component. Updates the component's template to reflect the use of signal accessors. Ensures initial filters are correctly applied. --- .../rooms-lists/rooms-lists.component.html | 38 +++++----- .../rooms-lists/rooms-lists.component.ts | 76 ++++++++----------- .../room-recordings.component.html | 2 +- .../room-recordings.component.ts | 13 ++-- .../rooms/pages/rooms/rooms.component.html | 2 +- .../rooms/pages/rooms/rooms.component.ts | 6 +- 6 files changed, 61 insertions(+), 76 deletions(-) diff --git a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/rooms/components/rooms-lists/rooms-lists.component.html b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/rooms/components/rooms-lists/rooms-lists.component.html index 2f932eb9..fc2e8735 100644 --- a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/rooms/components/rooms-lists/rooms-lists.component.html +++ b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/rooms/components/rooms-lists/rooms-lists.component.html @@ -1,4 +1,4 @@ -@if (!loading && rooms.length === 0 && !showEmptyFilterMessage) { +@if (!loading() && rooms().length === 0 && !showEmptyFilterMessage) {
@@ -18,7 +18,7 @@
- @if (showSearchBox) { + @if (showSearchBox()) { Search rooms @@ -44,14 +44,14 @@
- @if (showSelection && selectedRooms().size > 0) { + @if (showSelection() && selectedRooms().size > 0) {
- @if (showFilters) { + @if (showFilters()) { @@ -117,12 +117,12 @@ - @if (loading) { + @if (loading()) {
Loading rooms...
- } @else if (rooms.length === 0 && showEmptyFilterMessage) { + } @else if (rooms().length === 0 && showEmptyFilterMessage) {
@@ -141,7 +141,7 @@
- @if (showSelection) { + @if (showSelection()) {
@@ -168,7 +168,7 @@ @@ -309,7 +309,7 @@ mat-icon-button matTooltip="Open Room" (click)="openRoom(room)" - [disabled]="loading" + [disabled]="loading()" class="primary-action" id="open-room-btn-{{ room.roomId }}" > @@ -323,7 +323,7 @@ mat-icon-button matTooltip="Room Settings" (click)="editRoom(room)" - [disabled]="loading" + [disabled]="loading()" id="edit-room-btn-{{ room.roomId }}" > settings @@ -335,7 +335,7 @@ mat-icon-button [matMenuTriggerFor]="actionsMenu" matTooltip="More Actions" - [disabled]="loading" + [disabled]="loading()" id="more-actions-btn-{{ room.roomId }}" > more_vert @@ -406,13 +406,13 @@ - @if (showLoadMore) { + @if (showLoadMore()) {