From 6d3d19ccd0015d715446224cbefd8277f68238b7 Mon Sep 17 00:00:00 2001 From: CSantosM <4a.santos@gmail.com> Date: Fri, 13 Feb 2026 16:59:33 +0100 Subject: [PATCH] frontend: refactor computed signals in MeetingContextService for clarity and add captions status --- .../meeting/services/meeting-context.service.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/services/meeting-context.service.ts b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/services/meeting-context.service.ts index ddb07090..c4ee41ed 100644 --- a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/services/meeting-context.service.ts +++ b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/services/meeting-context.service.ts @@ -66,16 +66,15 @@ export class MeetingContextService { /** * Computed signal for whether the current user can moderate the room */ - readonly canModerateRoom = computed( - () => this.roomFeatureService.features().permissions.canModerateRoom - ); + readonly canModerateRoom = computed(() => this.roomFeatureService.features().permissions.canModerateRoom); /** * Computed signal for whether layout switching is allowed */ - readonly allowLayoutSwitching = computed( - () => this.roomFeatureService.features().ui.showLayoutSelector - ); + readonly allowLayoutSwitching = computed(() => this.roomFeatureService.features().ui.showLayoutSelector); + + /** Computed signal for captions status based on room and global configuration */ + readonly getCaptionsStatus = computed(() => this.roomFeatureService.features().ui.captionsStatus); /** Readonly signal for whether the device is mobile */ readonly isMobile = this.viewportService.isMobile;