Skip to content

Commit

Permalink
Revert "#1704 corrected routes for create direction"
Browse files Browse the repository at this point in the history
This reverts commit 3af9ecd.

#1704 changed directions route to directions-wrapper component
  • Loading branch information
Nazarii Ivasyshyn committed Oct 13, 2022
1 parent 3af9ecd commit e960955
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<img class="icon" [src]="categoryIcons[direction.id]" alt="{{direction.title}}">

<ng-container *ngIf="isEditMode">
<div [routerLink]="['./directions/create', direction.id]" class="config_edit-icon">
<div [routerLink]="['./create', direction.id]" class="config_edit-icon">
<button mat-button class="config-button">
<mat-icon>edit</mat-icon>
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/app/shell/admin-tools/admin-tools.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <h1 class="title">АДМІНІСТРУВАННЯ</h1>
<nav class="nav" mat-tab-nav-bar>
<a mat-tab-link [routerLinkActive]="['active']" [routerLink]="'./platform/'">ПОРТАЛ</a>
<a mat-tab-link [routerLinkActive]="['active']" [routerLink]="['./data/admins']">АДМІНІСТРАТОРИ</a>
<a mat-tab-link [routerLinkActive]="['active']" [routerLink]="['./data/directions-wrapper']">НАПРЯМКИ</a>
<a mat-tab-link [routerLinkActive]="['active']" [routerLink]="['./data/directions']">НАПРЯМКИ</a>
<a mat-tab-link [routerLinkActive]="['active']" [routerLink]="'./data/provider-list'">ЗАКЛАДИ</a>
<a mat-tab-link [routerLinkActive]="['active']" [routerLink]="['./data/users']">КОРИСТУВАЧІ</a>
<a mat-tab-link [routerLinkActive]="['active']">ЗАЯВИ</a>
Expand Down
5 changes: 2 additions & 3 deletions src/app/shell/admin-tools/data/data-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ const routes: Routes = [
{ path: 'users', component: UsersComponent},
{ path: 'admins', component: AdminsComponent},
{ path: 'history-log', component: HistoryLogComponent},
{ path: 'directions-wrapper', component: DirectionsWrapperComponent},
{ path: 'directions-wrapper/directions', component: DirectionsComponent},
{ path: 'directions-wrapper/directions/create/:param', component: CreateDirectionComponent}
{ path: 'directions', component: DirectionsWrapperComponent},
{ path: 'directions/create/:param', component: CreateDirectionComponent}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>
</div>

<a [routerLink]="['./directions/create', '']"><button class="btn" mat-raised-button>Додати напрямок</button></a>
<a [routerLink]="['./create', '']"><button class="btn" mat-raised-button>Додати напрямок</button></a>
</div>
<ng-container *ngIf="(filteredDirections$ | async); else isEmptyList" >
<div class="card-wrapper">
Expand Down

0 comments on commit e960955

Please sign in to comment.