diff --git a/src/app/commons/layouts/sub-menubar/sub-menubar.module.ts b/src/app/commons/layouts/sub-menubar/sub-menubar.module.ts index 5ba1c7d..53ebecb 100644 --- a/src/app/commons/layouts/sub-menubar/sub-menubar.module.ts +++ b/src/app/commons/layouts/sub-menubar/sub-menubar.module.ts @@ -2,14 +2,19 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SubMenubarComponent } from 'app/commons/layouts/sub-menubar/sub-menubar.component'; import { MaterialModule } from 'app/commons/ui/material/material.module'; +import { RouterModule } from '@angular/router'; @NgModule({ imports: [ CommonModule, - MaterialModule + MaterialModule, + RouterModule, ], declarations: [ - SubMenubarComponent + SubMenubarComponent, + ], + exports: [ + SubMenubarComponent, ] }) export class SubMenubarModule { } diff --git a/src/app/pages/pages.module.ts b/src/app/pages/pages.module.ts index 34f58f2..5d49bc1 100644 --- a/src/app/pages/pages.module.ts +++ b/src/app/pages/pages.module.ts @@ -15,7 +15,6 @@ import { PerfectScrollbarConfigInterface } from 'ngx-perfect-scrollbar'; import { NotificationComponent } from 'app/packages/notification/notification.component'; -import { SubMenubarModule } from 'app/commons/layouts/sub-menubar/sub-menubar.module'; const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { suppressScrollX: true @@ -30,7 +29,6 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { MaterialModule, PerfectScrollbarModule, FlexLayoutModule, - SubMenubarModule ], declarations: [ PagesComponent, diff --git a/src/app/pages/probe/probe-page-routing.module.ts b/src/app/pages/probe/probe-page-routing.module.ts index 445e794..872216e 100644 --- a/src/app/pages/probe/probe-page-routing.module.ts +++ b/src/app/pages/probe/probe-page-routing.module.ts @@ -1,9 +1,6 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { ProbePageComponent } from './probe-page.component'; -import { ListComponent as ProbeListComponent } from 'app/packages/probe/component/list/list.component'; -import { ListComponent as NoauthListComponent } from 'app/packages/noauth/component/list/list.component'; -import { DownloadComponent } from 'app/packages/probe/component/download/download.component'; import { DetailComponent as ProbeDetailComponent } from 'app/packages/probe/component/detail/detail.component'; const routes: Routes = [ @@ -11,7 +8,9 @@ const routes: Routes = [ path: '', component: ProbePageComponent, children: [ - { path: '', component: ProbeListComponent }, + { path: ':id', component: ProbeDetailComponent }, + { path: ':id/target', component: ProbeDetailComponent }, + { path: ':id/history', component: ProbeDetailComponent }, ] } ]; diff --git a/src/app/pages/probe/probe-page.component.html b/src/app/pages/probe/probe-page.component.html index 190e412..975a544 100644 --- a/src/app/pages/probe/probe-page.component.html +++ b/src/app/pages/probe/probe-page.component.html @@ -1,6 +1,6 @@