diff --git a/dashboard/src/app/app-routing.module.ts b/dashboard/src/app/app-routing.module.ts index ad2ff15..01b0d59 100644 --- a/dashboard/src/app/app-routing.module.ts +++ b/dashboard/src/app/app-routing.module.ts @@ -5,13 +5,15 @@ import { DashboardComponent } from './dashboard.component'; import { AlbumComponent } from './album/album.component'; import { ArtistComponent } from './artist/artist.component'; import { GenreComponent } from './genre/genre.component'; +import { LastAddedComponent } from './last-added/last-added.component'; const routes: Routes = [ { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, { path: 'dashboard', component: DashboardComponent }, { path: 'album/:name', component: AlbumComponent }, { path: 'artist/:name', component: ArtistComponent }, - { path: 'genre/:name', component: GenreComponent } + { path: 'genre/:name', component: GenreComponent }, + { path: 'lastAdded', component: LastAddedComponent } ]; @NgModule({ diff --git a/dashboard/src/app/app.module.ts b/dashboard/src/app/app.module.ts index 6c75147..0afb840 100644 --- a/dashboard/src/app/app.module.ts +++ b/dashboard/src/app/app.module.ts @@ -18,6 +18,8 @@ import { ConvertMoreExactPipe } from './convert-more-exact.pipe'; import { SortByPipe } from './sort-by.pipe'; import { ConvertSizeToStringPipe } from './convert-size-to-string.pipe'; +import { LastAddedComponent } from './last-added/last-added.component'; + @NgModule({ imports: [ BrowserModule, @@ -31,6 +33,7 @@ import { ConvertSizeToStringPipe } from './convert-size-to-string.pipe'; ArtistComponent, GenreComponent, SongTableComponent, + LastAddedComponent, ConvertMsPipe, ConvertMoreExactPipe, SortByPipe, diff --git a/dashboard/src/app/dashboard.component.html b/dashboard/src/app/dashboard.component.html index 0e65b4e..a3e0e34 100644 --- a/dashboard/src/app/dashboard.component.html +++ b/dashboard/src/app/dashboard.component.html @@ -78,7 +78,7 @@