frontend: Refactor room preferences to rooms component and update routing
This commit is contained in:
parent
017b430bf1
commit
a7a3abeb4d
@ -13,7 +13,7 @@ import { AuthService } from '../../services';
|
|||||||
export class ConsoleComponent {
|
export class ConsoleComponent {
|
||||||
navLinks: ConsoleNavLink[] = [
|
navLinks: ConsoleNavLink[] = [
|
||||||
{ label: 'Overview', route: 'overview', icon: 'dashboard' },
|
{ label: 'Overview', route: 'overview', icon: 'dashboard' },
|
||||||
{ label: 'Rooms', route: 'room-preferences', icon: 'video_settings' },
|
{ label: 'Rooms', route: 'rooms', icon: 'video_settings' },
|
||||||
{ label: 'Recordings', route: 'recordings', icon: 'radio_button_checked' }
|
{ label: 'Recordings', route: 'recordings', icon: 'radio_button_checked' }
|
||||||
// { label: 'Access & Permissions', route: 'access-permissions', icon: 'lock' },
|
// { label: 'Access & Permissions', route: 'access-permissions', icon: 'lock' },
|
||||||
// { label: 'Appearance', route: 'appearance', icon: 'palette' },
|
// { label: 'Appearance', route: 'appearance', icon: 'palette' },
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { RoomPreferencesComponent } from './room-preferences.component';
|
import { RoomPreferencesComponent } from './rooms.component';
|
||||||
|
|
||||||
describe('RoomConfigComponent', () => {
|
describe('RoomConfigComponent', () => {
|
||||||
let component: RoomPreferencesComponent;
|
let component: RoomPreferencesComponent;
|
||||||
@ -22,10 +22,10 @@ import { OpenViduMeetRoom } from 'projects/shared-meet-components/src/lib/typing
|
|||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatIconModule
|
MatIconModule
|
||||||
],
|
],
|
||||||
templateUrl: './room-preferences.component.html',
|
templateUrl: './rooms.component.html',
|
||||||
styleUrl: './room-preferences.component.scss'
|
styleUrl: './rooms.component.scss'
|
||||||
})
|
})
|
||||||
export class RoomPreferencesComponent implements OnInit {
|
export class RoomsComponent implements OnInit {
|
||||||
createdRooms: OpenViduMeetRoom[] = [];
|
createdRooms: OpenViduMeetRoom[] = [];
|
||||||
private roomPreferences!: RoomPreferences;
|
private roomPreferences!: RoomPreferences;
|
||||||
recordingEnabled = false;
|
recordingEnabled = false;
|
||||||
@ -36,7 +36,6 @@ export class RoomPreferencesComponent implements OnInit {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected loggerService: LoggerService,
|
protected loggerService: LoggerService,
|
||||||
|
|
||||||
private roomService: RoomService,
|
private roomService: RoomService,
|
||||||
private notificationService: NotificationService
|
private notificationService: NotificationService
|
||||||
) {
|
) {
|
||||||
@ -1,5 +1,5 @@
|
|||||||
export * from './console/console.component';
|
export * from './console/console.component';
|
||||||
export * from './console/room-preferences/room-preferences.component';
|
export * from './console/rooms/rooms.component';
|
||||||
export * from './console/access-permissions/access-permissions.component';
|
export * from './console/access-permissions/access-permissions.component';
|
||||||
export * from './console/appearance/appearance.component';
|
export * from './console/appearance/appearance.component';
|
||||||
export * from './console/security-preferences/security-preferences.component';
|
export * from './console/security-preferences/security-preferences.component';
|
||||||
|
|||||||
@ -18,10 +18,11 @@ import {
|
|||||||
DisconnectedComponent,
|
DisconnectedComponent,
|
||||||
OverviewComponent,
|
OverviewComponent,
|
||||||
ParticipantNameFormComponent,
|
ParticipantNameFormComponent,
|
||||||
RoomPreferencesComponent,
|
RoomsComponent,
|
||||||
SecurityPreferencesComponent,
|
SecurityPreferencesComponent,
|
||||||
VideoRoomComponent
|
VideoRoomComponent
|
||||||
} from '../pages';
|
} from '../pages';
|
||||||
|
import { RecordingsComponent } from '@lib/pages/console/recordings/recordings.component';
|
||||||
|
|
||||||
export const baseRoutes: Routes = [
|
export const baseRoutes: Routes = [
|
||||||
{ path: 'disconnected', component: DisconnectedComponent },
|
{ path: 'disconnected', component: DisconnectedComponent },
|
||||||
@ -34,7 +35,7 @@ export const baseRoutes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'console',
|
path: 'console',
|
||||||
component: ConsoleComponent,
|
component: ConsoleComponent,
|
||||||
canActivate: [/*standaloneModeGuard*/ checkAdminAuthenticatedGuard],
|
canActivate: [checkAdminAuthenticatedGuard],
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
@ -46,25 +47,30 @@ export const baseRoutes: Routes = [
|
|||||||
component: OverviewComponent
|
component: OverviewComponent
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'access-permissions',
|
path: 'rooms',
|
||||||
component: AccessPermissionsComponent
|
component: RoomsComponent
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'appearance',
|
path: 'recordings',
|
||||||
component: AppearanceComponent
|
component: RecordingsComponent
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'room-preferences',
|
|
||||||
component: RoomPreferencesComponent
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'security-preferences',
|
|
||||||
component: SecurityPreferencesComponent
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'about',
|
|
||||||
component: AboutComponent
|
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// path: 'access-permissions',
|
||||||
|
// component: AccessPermissionsComponent
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: 'appearance',
|
||||||
|
// component: AppearanceComponent
|
||||||
|
// },
|
||||||
|
|
||||||
|
// {
|
||||||
|
// path: 'security-preferences',
|
||||||
|
// component: SecurityPreferencesComponent
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: 'about',
|
||||||
|
// component: AboutComponent
|
||||||
|
// },
|
||||||
{ path: '**', redirectTo: 'overview' }
|
{ path: '**', redirectTo: 'overview' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user