Fix Operations routes.
This commit is contained in:
parent
54c44afd47
commit
01d77b22c3
@ -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,
|
||||||
}];
|
}];
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user