frontend: update video room component to conditionally display 'back to rooms' button based on embedded mode
This commit is contained in:
parent
82d81e7598
commit
299e6b0e75
@ -95,7 +95,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Quick Actions -->
|
<!-- Quick Actions -->
|
||||||
@if (isAdmin) {
|
@if (isAdmin && !isEmbeddedMode) {
|
||||||
<div class="quick-actions fade-in-delayed-more">
|
<div class="quick-actions fade-in-delayed-more">
|
||||||
<button mat-button class="quick-action-button" (click)="goBack()">
|
<button mat-button class="quick-action-button" (click)="goBack()">
|
||||||
<mat-icon>arrow_back</mat-icon>
|
<mat-icon>arrow_back</mat-icon>
|
||||||
|
|||||||
@ -13,6 +13,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
|||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { ErrorReason } from '@lib/models';
|
import { ErrorReason } from '@lib/models';
|
||||||
import {
|
import {
|
||||||
|
AppDataService,
|
||||||
ApplicationFeatures,
|
ApplicationFeatures,
|
||||||
AuthService,
|
AuthService,
|
||||||
FeatureConfigurationService,
|
FeatureConfigurationService,
|
||||||
@ -96,6 +97,7 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
|
|||||||
protected meetingService: MeetingService,
|
protected meetingService: MeetingService,
|
||||||
protected openviduService: OpenViduService,
|
protected openviduService: OpenViduService,
|
||||||
protected participantService: ParticipantTokenService,
|
protected participantService: ParticipantTokenService,
|
||||||
|
protected appDataService: AppDataService,
|
||||||
protected wcManagerService: WebComponentManagerService,
|
protected wcManagerService: WebComponentManagerService,
|
||||||
protected sessionStorageService: SessionStorageService,
|
protected sessionStorageService: SessionStorageService,
|
||||||
protected featureConfService: FeatureConfigurationService,
|
protected featureConfService: FeatureConfigurationService,
|
||||||
@ -134,6 +136,10 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
|
|||||||
return this.authService.isAdmin();
|
return this.authService.isAdmin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isEmbeddedMode(): boolean {
|
||||||
|
return this.appDataService.isEmbeddedMode();
|
||||||
|
}
|
||||||
|
|
||||||
async submitAccessRoom() {
|
async submitAccessRoom() {
|
||||||
const { valid, value } = this.participantForm;
|
const { valid, value } = this.participantForm;
|
||||||
if (!valid || !value.name?.trim()) {
|
if (!valid || !value.name?.trim()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user