diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 5465f4b..81648b7 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -27,6 +27,7 @@ import {WaypointListComponent} from "./waypoint/waypoint-list/waypoint-list.comp import {WaypointDetailComponent} from "./waypoint/waypoint-detail/waypoint-detail.component"; import {WaypointEditComponent} from "./waypoint/waypoint-edit/waypoint-edit.component"; import {WaypointDeleteComponent} from "./waypoint/waypoint-delete/waypoint-delete.component"; +import {RouteVersionsDeleteComponent} from "./route-versions/route-versions-delete/route-versions-delete.component"; const routes: Routes = [ { path: 'users/create', component: UserRegisterComponent}, @@ -42,6 +43,7 @@ const routes: Routes = [ { path: 'routes', component: RouteListComponent, canActivate: [CheckLoggedInGuard] }, { path: 'route-versions-create', component: RouteVersionsCreateComponent, canActivate: [CheckIsNotAdminGuard] }, + { path: 'route-versions/delete', component: RouteVersionsDeleteComponent, canActivate: [CheckIsNotAdminGuard] }, { path: 'routeFollowed/create', component: RouteFollowedCreateComponent, canActivate: [CheckIsNotAdminGuard] }, { path: 'routeFollowed/:id/delete', component: RouteFollowedDeleteComponent, canActivate: [CheckIsNotAdminGuard]}, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index f3be4a7..9b8faab 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -48,6 +48,8 @@ import {RouteFollowedDetailComponent} from "./routeFollowed/route-followed-detai import { RouteVersionsCreateComponent } from './route-versions/route-versions-create/route-versions-create.component'; import { ServiceWorkerModule } from '@angular/service-worker'; import {NgxDatatableModule} from "@swimlane/ngx-datatable"; +import { RouteVersionsListComponent } from './route-versions/route-versions-list/route-versions-list.component'; +import { RouteVersionsDeleteComponent } from './route-versions/route-versions-delete/route-versions-delete.component'; @NgModule({ declarations: [ @@ -78,7 +80,9 @@ import {NgxDatatableModule} from "@swimlane/ngx-datatable"; RouteFollowedEditComponent, RouteFollowedListComponent, RouteFollowedDetailComponent, - RouteVersionsCreateComponent + RouteVersionsCreateComponent, + RouteVersionsListComponent, + RouteVersionsDeleteComponent ], imports: [ BrowserModule, diff --git a/src/app/route-versions/route-versions-delete/route-versions-delete.component.html b/src/app/route-versions/route-versions-delete/route-versions-delete.component.html new file mode 100644 index 0000000..5af9069 --- /dev/null +++ b/src/app/route-versions/route-versions-delete/route-versions-delete.component.html @@ -0,0 +1 @@ +
route-versions-delete works!
diff --git a/src/app/route-versions/route-versions-delete/route-versions-delete.component.scss b/src/app/route-versions/route-versions-delete/route-versions-delete.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/route-versions/route-versions-delete/route-versions-delete.component.ts b/src/app/route-versions/route-versions-delete/route-versions-delete.component.ts new file mode 100644 index 0000000..b2c6e3f --- /dev/null +++ b/src/app/route-versions/route-versions-delete/route-versions-delete.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-route-versions-delete', + templateUrl: './route-versions-delete.component.html', + styleUrls: ['./route-versions-delete.component.scss'] +}) +export class RouteVersionsDeleteComponent { + +} diff --git a/src/app/route-versions/route-versions-list/route-versions-list.component.html b/src/app/route-versions/route-versions-list/route-versions-list.component.html new file mode 100644 index 0000000..f41addb --- /dev/null +++ b/src/app/route-versions/route-versions-list/route-versions-list.component.html @@ -0,0 +1,30 @@ +{{version.createdBy?.username}}
+{{version.creationDate | date: 'dd/MM/yyyy HH:mm:ss'}}
+{{version.title}}
+