{
path: '',
component: WorkbenchLayoutComponent,
+ canActivate: [AuthGuardService],
+ canActivateChild: [AuthGuardService],
children: [
- { path: 'dashboard', component: DashboardComponent, canActivate: [AuthGuardService] },
+ { path: 'dashboard', component: DashboardComponent },
// Cluster
{
path: 'hosts',
- canActivate: [AuthGuardService],
data: { breadcrumbs: 'Cluster/Hosts' },
children: [
{ path: '', component: HostsComponent },
{
path: 'monitor',
component: MonitorComponent,
- canActivate: [AuthGuardService],
data: { breadcrumbs: 'Cluster/Monitors' }
},
{
path: 'services',
component: ServicesComponent,
- canActivate: [AuthGuardService],
data: { breadcrumbs: 'Cluster/Services' }
},
{
path: 'inventory',
component: InventoryComponent,
- canActivate: [AuthGuardService],
data: { breadcrumbs: 'Cluster/Inventory' }
},
{
path: 'osd',
- canActivate: [AuthGuardService],
- canActivateChild: [AuthGuardService],
data: { breadcrumbs: 'Cluster/OSDs' },
children: [
{ path: '', component: OsdListComponent },
{
path: 'crush-map',
component: CrushmapComponent,
- canActivate: [AuthGuardService],
data: { breadcrumbs: 'Cluster/CRUSH map' }
},
{
path: 'logs',
component: LogsComponent,
- canActivate: [AuthGuardService],
data: { breadcrumbs: 'Cluster/Logs' }
},
{
path: 'monitoring',
- canActivate: [AuthGuardService],
data: { breadcrumbs: 'Cluster/Monitoring' },
children: [
{
{
path: 'perf_counters/:type/:id',
component: PerformanceCounterComponent,
- canActivate: [AuthGuardService],
data: {
breadcrumbs: PerformanceCounterBreadcrumbsResolver
}
// Mgr modules
{
path: 'mgr-modules',
- canActivate: [AuthGuardService],
- canActivateChild: [AuthGuardService],
data: { breadcrumbs: 'Cluster/Manager modules' },
children: [
{
// Pools
{
path: 'pool',
- canActivate: [AuthGuardService],
- canActivateChild: [AuthGuardService],
data: { breadcrumbs: 'Pools' },
loadChildren: () => import('./ceph/pool/pool.module').then((m) => m.RoutedPoolModule)
},
// Block
{
path: 'block',
- canActivateChild: [AuthGuardService],
- canActivate: [AuthGuardService],
data: { breadcrumbs: true, text: 'Block', path: null },
loadChildren: () => import('./ceph/block/block.module').then((m) => m.RoutedBlockModule)
},
{
path: 'cephfs',
component: CephfsListComponent,
- canActivate: [FeatureTogglesGuardService, AuthGuardService],
+ canActivate: [FeatureTogglesGuardService],
data: { breadcrumbs: 'Filesystems' }
},
// Object Gateway
{
path: 'rgw',
- canActivateChild: [FeatureTogglesGuardService, ModuleStatusGuardService, AuthGuardService],
+ canActivateChild: [FeatureTogglesGuardService, ModuleStatusGuardService],
data: {
moduleStatusGuardConfig: {
apiPath: 'rgw',
// User/Role Management
{
path: 'user-management',
- canActivate: [AuthGuardService],
- canActivateChild: [AuthGuardService],
data: { breadcrumbs: 'User management', path: null },
loadChildren: () => import('./core/auth/auth.module').then((m) => m.RoutedAuthModule)
},
// User Profile
{
path: 'user-profile',
- canActivate: [AuthGuardService],
- canActivateChild: [AuthGuardService],
data: { breadcrumbs: 'User profile', path: null },
children: [
{
{
path: 'nfs/501/:message',
component: Nfs501Component,
- canActivate: [AuthGuardService],
data: { breadcrumbs: 'NFS' }
},
{
path: 'nfs',
- canActivate: [AuthGuardService],
- canActivateChild: [AuthGuardService, ModuleStatusGuardService],
+ canActivateChild: [ModuleStatusGuardService],
data: {
moduleStatusGuardConfig: {
apiPath: 'nfs-ganesha',