Skip to content

Commit

Permalink
feature/SHIBUI-574: Initial checkin for child routes on the dashboard…
Browse files Browse the repository at this point in the history
… (resolvers, providers); BROKEN CODE
  • Loading branch information
Jodie Muramoto committed Jul 9, 2018
1 parent 20db325 commit 9ce246f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
// selector: 'dashboard-providers-list',
templateUrl: './dashboard-providers-list.component.html'
})

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
// selector: 'dashboard-resolvers-list',
templateUrl: './dashboard-resolvers-list.component.html'
})

Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/metadata/manager/container/manager.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<div class="section-body p-2 border border-top-0 border-primary">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" [routerLink]="['/resolvers']">Resolvers</a>
<a class="nav-link active" [routerLink]="['./', 'resolvers']">Resolvers</a>
</li>
<li class="nav-item">
<a class="nav-link" [routerLink]="['/providers']">Providers</a>
<a class="nav-link" [routerLink]="['./', 'providers']">Providers</a>
</li>
</ul>
<router-outlet></router-outlet>
Expand Down
9 changes: 5 additions & 4 deletions ui/src/app/metadata/metadata.routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ const routes: Routes = [
path: '',
component: MetadataPageComponent,
children: [
{ path: '', component: ManagerComponent },
{ path: '', redirectTo: 'resolvers', pathMatch: 'full' },
{ path: 'resolvers', component: DashboardResolversListComponent },
{ path: 'providers', component: DashboardProvidersListComponent },
{ path: '', component: ManagerComponent, children: [
{ path: '', redirectTo: 'resolvers', pathMatch: 'full' },
{ path: 'resolvers', component: DashboardResolversListComponent },
{ path: 'providers', component: DashboardProvidersListComponent },
] },
...ResolverRoutes,
...ProviderRoutes
],
Expand Down

0 comments on commit 9ce246f

Please sign in to comment.