Fix Operations routes.

This commit is contained in:
Alexis Lahouze 2018-06-14 11:02:12 +02:00
parent 54c44afd47
commit 01d77b22c3
3 changed files with 5 additions and 3 deletions

View File

@ -12,6 +12,6 @@ export const OperationRoutes: Routes = [{
path: 'account/:accountId/operations/new', path: 'account/:accountId/operations/new',
component: OperationEditComponent, component: OperationEditComponent,
}, { }, {
path: 'account/:accountId/operation/:operationId/edit', path: 'account/:accountId/operations/:operationId/edit',
component: OperationEditComponent, component: OperationEditComponent,
}]; }];

View File

@ -47,7 +47,8 @@ import { OperationService } from './operation.service';
<tbody> <tbody>
<tr> <tr>
<td colspan="6"> <td colspan="6">
<a class="btn btn-success" routerLink="/account/{{account.id}}/operations/new"> <a class="btn btn-success"
[routerLink]="['new']">
Ajouter Ajouter
</a> </a>
</td> </td>

View File

@ -42,7 +42,8 @@ import { OperationDeleteModalComponent } from './operationDeleteModal.component'
<!-- Edit operation, for non-canceled operation. --> <!-- Edit operation, for non-canceled operation. -->
<a class="btn btn-success" <a class="btn btn-success"
*ngIf="!operation.canceled" *ngIf="!operation.canceled"
routerLink="/account/{{account.id}}/operation/{{ operation.id }}/edit" title="edit"> [routerLink]="[operation.id, 'edit']"
title="edit">
<span class="fa fa-pencil-square-o"></span> <span class="fa fa-pencil-square-o"></span>
</a> </a>