frontend: add goBackToRoom method in RoomRecordingsComponent
This commit is contained in:
parent
3e046ce46b
commit
bf0ccf9c39
@ -1,6 +1,12 @@
|
||||
<div class="ov-page-container">
|
||||
<!-- Room Recordings Header -->
|
||||
<div class="recordings-page-header fade-in">
|
||||
<div class="quick-actions fade-in-delayed-more">
|
||||
<button mat-button class="quick-action-button" (click)="goBackToRoom()">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
<span>Back to Room</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="recordings-header">
|
||||
<mat-icon class="ov-recording-icon room-icon">video_library</mat-icon>
|
||||
<div class="room-info">
|
||||
|
||||
@ -5,7 +5,7 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { MatToolbarModule } from '@angular/material/toolbar';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { RecordingListsComponent, RecordingTableAction } from '@lib/components';
|
||||
import { NavigationService, NotificationService, RecordingManagerService } from '@lib/services';
|
||||
import { NavigationService, NotificationService, RecordingManagerService, RoomService } from '@lib/services';
|
||||
import { MeetRecordingFilters, MeetRecordingInfo } from '@lib/typings/ce';
|
||||
import { ILogger, LoggerService } from 'openvidu-components-angular';
|
||||
|
||||
@ -33,6 +33,7 @@ export class RoomRecordingsComponent implements OnInit {
|
||||
constructor(
|
||||
protected loggerService: LoggerService,
|
||||
protected recordingService: RecordingManagerService,
|
||||
protected roomService: RoomService,
|
||||
protected notificationService: NotificationService,
|
||||
protected navigationService: NavigationService,
|
||||
protected route: ActivatedRoute
|
||||
@ -46,6 +47,16 @@ export class RoomRecordingsComponent implements OnInit {
|
||||
await this.loadRecordings();
|
||||
}
|
||||
|
||||
async goBackToRoom() {
|
||||
try {
|
||||
await this.navigationService.navigateTo(`/room/${this.roomId}`, {
|
||||
secret: this.roomService.getRoomSecret()
|
||||
});
|
||||
} catch (error) {
|
||||
this.log.e('Error navigating back to room:', error);
|
||||
}
|
||||
}
|
||||
|
||||
async onRecordingAction(action: RecordingTableAction) {
|
||||
switch (action.action) {
|
||||
case 'play':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user