import { FeatureTogglesGuardService } from './shared/services/feature-toggles-guard.service';
import { ModuleStatusGuardService } from './shared/services/module-status-guard.service';
import { NoSsoGuardService } from './shared/services/no-sso-guard.service';
+import { CephfsVolumeFormComponent } from './ceph/cephfs/cephfs-form/cephfs-form.component';
+import { UpgradeComponent } from './ceph/cluster/upgrade/upgrade.component';
+import { UpgradeProgressComponent } from './ceph/cluster/upgrade/upgrade-progress/upgrade-progress.component';
@Injectable()
export class PerformanceCounterBreadcrumbsResolver extends BreadcrumbsResolver {
}
]
},
+ {
+ path: 'upgrade',
+ canActivate: [ModuleStatusGuardService],
+ data: {
+ moduleStatusGuardConfig: {
+ uiApiPath: 'orchestrator',
+ redirectTo: 'error',
+ backend: 'cephadm',
+ section: 'orch',
+ section_info: 'Orchestrator',
+ header: 'Orchestrator is not available'
+ },
+ breadcrumbs: 'Cluster/Upgrade'
+ },
+ children: [
+ {
+ path: '',
+ component: UpgradeComponent
+ },
+ {
+ path: 'progress',
+ component: UpgradeProgressComponent,
+ data: { breadcrumbs: 'Progress' }
+ }
+ ]
+ },
{
path: 'perf_counters/:type/:id',
component: PerformanceCounterComponent,
// File Systems
{
path: 'cephfs',
- component: CephfsListComponent,
canActivate: [FeatureTogglesGuardService],
- data: { breadcrumbs: 'File Systems' }
+ data: { breadcrumbs: 'File Systems' },
+ children: [
+ { path: '', component: CephfsListComponent },
+ {
+ path: URLVerbs.CREATE,
+ component: CephfsVolumeFormComponent,
+ data: { breadcrumbs: ActionLabels.CREATE }
+ },
+ {
+ path: `${URLVerbs.EDIT}/:name`,
+ component: CephfsVolumeFormComponent,
+ data: { breadcrumbs: ActionLabels.EDIT }
+ }
+ ]
},
// Object Gateway
{
path: 'rgw',
- canActivateChild: [FeatureTogglesGuardService, ModuleStatusGuardService],
+ canActivate: [FeatureTogglesGuardService, ModuleStatusGuardService],
data: {
moduleStatusGuardConfig: {
uiApiPath: 'rgw',
imports: [
RouterModule.forRoot(routes, {
useHash: true,
- preloadingStrategy: PreloadAllModules,
- relativeLinkResolution: 'legacy'
+ preloadingStrategy: PreloadAllModules
})
],
exports: [RouterModule],