Skip to content

Commit

Permalink
Merge pull request #108 from Apes2getherStrong/WTG-16-no-ability-to-e…
Browse files Browse the repository at this point in the history
…dit-map-location-after-adding-it-fix

Wtg 16 no ability to edit map location after adding it fix
  • Loading branch information
Kondziow authored Aug 29, 2024
2 parents 3eee5e1 + 815aebb commit 0f4b571
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {RouterModule, Routes} from '@angular/router';
import {LogInComponent} from "./user/log-in/log-in.component";
import {UserProfileComponent} from "./user/user-profile/user-profile.component";
import {RoutesComponent} from "./route/routes/routes.component";
import {UserRoutesComponent} from "./route/user-routes/user-routes.component";
import {RouteDetailComponent} from "./route/route-detail/route-detail.component";
import {RouteEditComponent} from "./route/route-edit/route-edit.component";
import {RouteInfoComponent} from "./route/route-info/route-info.component";
Expand Down Expand Up @@ -69,11 +68,6 @@ const routes: Routes = [
}
]
},
{
path: 'routes/:id/edit',
canActivate: [AuthGuardService],
component: RouteEditComponent
},
// {
// path: 'users/:id/routes',
// canActivate: [AuthGuardService],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class MapLocationEditComponent implements OnInit {
if (this.editMode) {
this.router.navigate(['yourRoutes/list'])
} else {
this.router.navigate(['routes/' + this.routeId + '/edit']);
this.router.navigate(['yourRoutes/' + this.routeId + '/edit']);
}

}
Expand Down

0 comments on commit 0f4b571

Please sign in to comment.