frontend: update video room component to conditionally display 'back to rooms' button based on embedded mode

This commit is contained in:
juancarmore 2025-07-09 01:44:03 +02:00
parent 82d81e7598
commit 299e6b0e75
2 changed files with 7 additions and 1 deletions

View File

@ -95,7 +95,7 @@
</div>
<!-- Quick Actions -->
@if (isAdmin) {
@if (isAdmin && !isEmbeddedMode) {
<div class="quick-actions fade-in-delayed-more">
<button mat-button class="quick-action-button" (click)="goBack()">
<mat-icon>arrow_back</mat-icon>

View File

@ -13,6 +13,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
import { ActivatedRoute } from '@angular/router';
import { ErrorReason } from '@lib/models';
import {
AppDataService,
ApplicationFeatures,
AuthService,
FeatureConfigurationService,
@ -96,6 +97,7 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
protected meetingService: MeetingService,
protected openviduService: OpenViduService,
protected participantService: ParticipantTokenService,
protected appDataService: AppDataService,
protected wcManagerService: WebComponentManagerService,
protected sessionStorageService: SessionStorageService,
protected featureConfService: FeatureConfigurationService,
@ -134,6 +136,10 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
return this.authService.isAdmin();
}
get isEmbeddedMode(): boolean {
return this.appDataService.isEmbeddedMode();
}
async submitAccessRoom() {
const { valid, value } = this.participantForm;
if (!valid || !value.name?.trim()) {