frontend: Remove recording access control from recording configuration
This commit is contained in:
parent
337ba91725
commit
78cfc3035e
@ -39,19 +39,6 @@
|
||||
<p class="access-description">Choose who can access and view the recordings</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<mat-form-field appearance="outline" class="access-selector">
|
||||
<mat-label>Who can access recordings</mat-label>
|
||||
<mat-select formControlName="allowAccessTo">
|
||||
@for (accessOption of recordingAccessOptions; track accessOption.value) {
|
||||
<mat-option [value]="accessOption.value">
|
||||
<div class="access-option">
|
||||
<span class="access-desc">{{ accessOption.label }}</span>
|
||||
</div>
|
||||
</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
}
|
||||
</form>
|
||||
|
||||
@ -6,7 +6,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatRadioModule } from '@angular/material/radio';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MeetRecordingAccess, MeetRoomOptions } from '@openvidu-meet/typings';
|
||||
import { MeetRoomOptions } from '@openvidu-meet/typings';
|
||||
import { Subject, takeUntil } from 'rxjs';
|
||||
import {
|
||||
SelectableCardComponent,
|
||||
@ -15,11 +15,6 @@ import {
|
||||
} from '../../../../../../shared/components/selectable-card/selectable-card.component';
|
||||
import { RoomWizardStateService } from '../../../../services/wizard-state.service';
|
||||
|
||||
interface RecordingAccessOption {
|
||||
value: MeetRecordingAccess;
|
||||
label: string;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'ov-recording-config',
|
||||
imports: [
|
||||
@ -58,20 +53,6 @@ export class RecordingConfigComponent implements OnDestroy {
|
||||
icon: 'videocam_off'
|
||||
}
|
||||
];
|
||||
recordingAccessOptions: RecordingAccessOption[] = [
|
||||
{
|
||||
value: MeetRecordingAccess.ADMIN,
|
||||
label: 'Only Admin'
|
||||
},
|
||||
{
|
||||
value: MeetRecordingAccess.ADMIN_MODERATOR,
|
||||
label: 'Admin and Moderators'
|
||||
},
|
||||
{
|
||||
value: MeetRecordingAccess.ADMIN_MODERATOR_SPEAKER,
|
||||
label: 'Admin, Moderators and Speakers'
|
||||
}
|
||||
];
|
||||
|
||||
private destroy$ = new Subject<void>();
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { computed, Injectable, signal } from '@angular/core';
|
||||
import { AbstractControl, FormBuilder, ValidationErrors, Validators } from '@angular/forms';
|
||||
import {
|
||||
MeetRecordingAccess,
|
||||
MeetRecordingLayout,
|
||||
MeetRoomConfig,
|
||||
MeetRoomDeletionPolicyWithMeeting,
|
||||
@ -14,8 +13,7 @@ import { WizardNavigationConfig, WizardStep } from '../models';
|
||||
const DEFAULT_CONFIG: MeetRoomConfig = {
|
||||
recording: {
|
||||
enabled: true,
|
||||
layout: MeetRecordingLayout.GRID,
|
||||
allowAccessTo: MeetRecordingAccess.ADMIN_MODERATOR_SPEAKER
|
||||
layout: MeetRecordingLayout.GRID
|
||||
},
|
||||
chat: { enabled: true },
|
||||
virtualBackground: { enabled: true },
|
||||
@ -159,8 +157,7 @@ export class RoomWizardStateService {
|
||||
isActive: editMode, // Only active in edit mode
|
||||
isVisible: true,
|
||||
formGroup: this.formBuilder.group({
|
||||
recordingEnabled: initialRoomOptions.config!.recording!.enabled ? 'enabled' : 'disabled',
|
||||
allowAccessTo: initialRoomOptions.config!.recording!.allowAccessTo
|
||||
recordingEnabled: initialRoomOptions.config!.recording!.enabled ? 'enabled' : 'disabled'
|
||||
})
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user