diff --git a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-custom-layout/meeting-custom-layout.component.ts b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-custom-layout/meeting-custom-layout.component.ts index 34ebb515..fcc30e78 100644 --- a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-custom-layout/meeting-custom-layout.component.ts +++ b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-custom-layout/meeting-custom-layout.component.ts @@ -41,7 +41,7 @@ export class MeetingCustomLayoutComponent { meetingUrl = this.meetingContextService.meetingUrl; shouldShowLinkOverlay = computed(() => { const hasNoRemotes = this.remoteParticipants().length === 0; - return this.meetingContextService.canModerateRoom() && hasNoRemotes; + return this.meetingContextService.meetingUI().showShareAccessLinks && hasNoRemotes; }); linkOverlayConfig = { title: 'Start collaborating', @@ -51,8 +51,8 @@ export class MeetingCustomLayoutComponent { }; areCaptionsEnabledByUser = this.captionsService.areCaptionsEnabledByUser; - isLayoutSwitchingAllowed = this.meetingContextService.allowLayoutSwitching; - isSmartMosaicActive = computed(() => this.isLayoutSwitchingAllowed() && this.layoutService.isSmartMosaicEnabled()); + private showLayoutSelector = computed(() => this.meetingContextService.meetingUI().showLayoutSelector); + isSmartMosaicActive = computed(() => this.showLayoutSelector() && this.layoutService.isSmartMosaicEnabled()); captions = this.captionsService.captions; remoteParticipants = this.meetingContextService.remoteParticipants; @@ -188,7 +188,7 @@ export class MeetingCustomLayoutComponent { private setupSpeakerTrackingEffect(): void { effect(() => { const room = this.lkRoom(); - if (this.isLayoutSwitchingAllowed() && room) { + if (this.showLayoutSelector() && room) { this.layoutService.initializeSpeakerTracking(room); } }); diff --git a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-invite-panel/meeting-invite-panel.component.ts b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-invite-panel/meeting-invite-panel.component.ts index bebbe888..163fe6a4 100644 --- a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-invite-panel/meeting-invite-panel.component.ts +++ b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-invite-panel/meeting-invite-panel.component.ts @@ -1,5 +1,5 @@ import { CommonModule } from '@angular/common'; -import { Component, inject } from '@angular/core'; +import { Component, computed, inject } from '@angular/core'; import { LoggerService } from 'openvidu-components-angular'; import { ShareMeetingLinkComponent } from '../../components/share-meeting-link/share-meeting-link.component'; import { MeetingContextService } from '../../services/meeting-context.service'; @@ -21,7 +21,7 @@ export class MeetingInvitePanelComponent { protected loggerService = inject(LoggerService); protected log = this.loggerService.get('OpenVidu Meet - MeetingInvitePanel'); - showShareLink = this.meetingContextService.canModerateRoom; + showShareLink = computed(() => this.meetingContextService.meetingUI().showShareAccessLinks); meetingUrl = this.meetingContextService.meetingUrl; onCopyClicked(): void { diff --git a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-settings-extensions/meeting-settings-extensions.component.html b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-settings-extensions/meeting-settings-extensions.component.html index 42a71643..70986f6c 100644 --- a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-settings-extensions/meeting-settings-extensions.component.html +++ b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/customization/meeting-settings-extensions/meeting-settings-extensions.component.html @@ -1,5 +1,5 @@ -@if (isLayoutSwitchingAllowed()) { +@if (showLayoutSelector()) {