import { MultiClusterListComponent } from './ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component';
import { MultiClusterDetailsComponent } from './ceph/cluster/multi-cluster/multi-cluster-details/multi-cluster-details.component';
import { SmbClusterFormComponent } from './ceph/smb/smb-cluster-form/smb-cluster-form.component';
-import { SmbTabsComponent } from './ceph/smb/smb-tabs/smb-tabs.component';
import { SmbShareFormComponent } from './ceph/smb/smb-share-form/smb-share-form.component';
import { SmbJoinAuthFormComponent } from './ceph/smb/smb-join-auth-form/smb-join-auth-form.component';
import { SmbUsersgroupsFormComponent } from './ceph/smb/smb-usersgroups-form/smb-usersgroups-form.component';
import { NfsClusterComponent } from './ceph/nfs/nfs-cluster/nfs-cluster.component';
+import { SmbClusterListComponent } from './ceph/smb/smb-cluster-list/smb-cluster-list.component';
+import { SmbJoinAuthListComponent } from './ceph/smb/smb-join-auth-list/smb-join-auth-list.component';
+import { SmbUsersgroupsListComponent } from './ceph/smb/smb-usersgroups-list/smb-usersgroups-list.component';
+import { SmbOverviewComponent } from './ceph/smb/smb-overview/smb-overview.component';
@Injectable()
export class PerformanceCounterBreadcrumbsResolver extends BreadcrumbsResolver {
},
{
path: 'smb',
- canActivateChild: [ModuleStatusGuardService],
+ canActivate: [ModuleStatusGuardService],
data: {
moduleStatusGuardConfig: {
uiApiPath: 'smb',
breadcrumbs: 'File/SMB'
},
children: [
- { path: '', component: SmbTabsComponent },
+ { path: '', component: SmbClusterListComponent },
{
- path: `${URLVerbs.CREATE}`,
- component: SmbClusterFormComponent,
- data: { breadcrumbs: ActionLabels.CREATE }
- },
- {
- path: `share/${URLVerbs.CREATE}/:clusterId`,
- component: SmbShareFormComponent,
- data: { breadcrumbs: ActionLabels.CREATE }
+ path: 'clusters',
+ data: { breadcrumbs: 'Clusters' },
+ children: [
+ { path: '', component: SmbClusterListComponent },
+ {
+ path: `${URLVerbs.CREATE}`,
+ component: SmbClusterFormComponent,
+ data: { breadcrumbs: ActionLabels.CREATE }
+ },
+ {
+ path: `${URLVerbs.EDIT}/:cluster_id`,
+ component: SmbClusterFormComponent,
+ data: { breadcrumbs: ActionLabels.EDIT }
+ }
+ ]
},
{
- path: `${URLVerbs.EDIT}/:cluster_id`,
- component: SmbClusterFormComponent,
- data: { breadcrumbs: ActionLabels.EDIT }
+ path: 'active-directory',
+ data: { breadcrumbs: 'Active Directory' },
+ children: [
+ { path: '', component: SmbJoinAuthListComponent },
+ {
+ path: `${URLVerbs.CREATE}`,
+ component: SmbJoinAuthFormComponent,
+ data: { breadcrumbs: ActionLabels.CREATE }
+ },
+ {
+ path: `${URLVerbs.EDIT}/:authId`,
+ component: SmbJoinAuthFormComponent,
+ data: { breadcrumbs: ActionLabels.EDIT }
+ }
+ ]
},
{
- path: `ad/${URLVerbs.CREATE}`,
- component: SmbJoinAuthFormComponent,
- data: { breadcrumbs: ActionLabels.CREATE }
+ path: 'standalone',
+ data: { breadcrumbs: 'Standalone' },
+ children: [
+ { path: '', component: SmbUsersgroupsListComponent },
+ {
+ path: `${URLVerbs.CREATE}`,
+ component: SmbUsersgroupsFormComponent,
+ data: { breadcrumbs: ActionLabels.CREATE }
+ },
+ {
+ path: `${URLVerbs.EDIT}/:usersGroupsId`,
+ component: SmbUsersgroupsFormComponent
+ }
+ ]
},
{
- path: `ad/${URLVerbs.EDIT}/:authId`,
- component: SmbJoinAuthFormComponent,
- data: { breadcrumbs: ActionLabels.EDIT }
+ path: 'overview',
+ component: SmbOverviewComponent,
+ data: { breadcrumbs: 'Overview' }
},
{
- path: `standalone/${URLVerbs.CREATE}`,
- component: SmbUsersgroupsFormComponent,
+ path: `share/${URLVerbs.CREATE}/:clusterId`,
+ component: SmbShareFormComponent,
data: { breadcrumbs: ActionLabels.CREATE }
},
- {
- path: `standalone/${URLVerbs.EDIT}/:usersGroupsId`,
- component: SmbUsersgroupsFormComponent
- },
{
path: `share/${URLVerbs.EDIT}/:clusterId/:shareId`,
component: SmbShareFormComponent,
[cacheActive]="false">
<cds-tab
heading="Clusters"
- [tabContent]="clusters"
i18n-heading
+ [active]="activeTab === Tabs.clusters"
(selected)="onSelected(Tabs.clusters)">
</cds-tab>
<cds-tab
heading="Active Directory"
- [tabContent]="joinAuth"
i18n-heading
- (selected)="onSelected(Tabs.joinAuths)">
+ [active]="activeTab === Tabs.activeDirectory"
+ (selected)="onSelected(Tabs.activeDirectory)">
</cds-tab>
<cds-tab
heading="Standalone"
- [tabContent]="usersgroups"
i18n-heading
- (selected)="onSelected(Tabs.usersgroups)">
+ [active]="activeTab === Tabs.standalone"
+ (selected)="onSelected(Tabs.standalone)">
</cds-tab>
<cds-tab
heading="Overview"
- [tabContent]="overview"
i18n-heading
+ [active]="activeTab === Tabs.overview"
(selected)="onSelected(Tabs.overview)">
</cds-tab>
</cds-tabs>
-
-<ng-template #clusters>
- <cd-smb-cluster-list></cd-smb-cluster-list>
-</ng-template>
-
-<ng-template #joinAuth>
- <cd-smb-join-auth-list></cd-smb-join-auth-list>
-</ng-template>
-
-<ng-template #usersgroups>
- <cd-smb-users-list></cd-smb-users-list>
-</ng-template>
-
-<ng-template #overview>
- <cd-smb-overview></cd-smb-overview>
-</ng-template>