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',
|
||||
component: OperationEditComponent,
|
||||
}, {
|
||||
path: 'account/:accountId/operation/:operationId/edit',
|
||||
path: 'account/:accountId/operations/:operationId/edit',
|
||||
component: OperationEditComponent,
|
||||
}];
|
||||
|
@ -47,7 +47,8 @@ import { OperationService } from './operation.service';
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<a class="btn btn-success" routerLink="/account/{{account.id}}/operations/new">
|
||||
<a class="btn btn-success"
|
||||
[routerLink]="['new']">
|
||||
Ajouter
|
||||
</a>
|
||||
</td>
|
||||
|
@ -42,7 +42,8 @@ import { OperationDeleteModalComponent } from './operationDeleteModal.component'
|
||||
<!-- Edit operation, for non-canceled operation. -->
|
||||
<a class="btn btn-success"
|
||||
*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>
|
||||
</a>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user