frontend: refactor computed signals in MeetingContextService for clarity and add captions status
This commit is contained in:
parent
d155846708
commit
6d3d19ccd0
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user