frontend: refactor computed signals in MeetingContextService for clarity and add captions status

This commit is contained in:
CSantosM 2026-02-13 16:59:33 +01:00
parent d155846708
commit 6d3d19ccd0

View File

@ -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;