Fix operation row action buttons.
This commit is contained in:
parent
e592efd25d
commit
b5abe44bd9
@ -39,16 +39,15 @@ import { OperationEditModalComponent } from './operationEditModal.component';
|
|||||||
<td>{{ operation.category }}</td>
|
<td>{{ operation.category }}</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<div class="btn-group btn-group-sm">
|
|
||||||
<!-- Edit operation, for non-canceled operation. -->
|
<!-- Edit operation, for non-canceled operation. -->
|
||||||
<button type="button" class="btn btn-success"
|
<button type="button" class="btn-floating green lighten-2"
|
||||||
*ngIf="!operation.canceled"
|
*ngIf="!operation.canceled"
|
||||||
(click)="modify(operation)" title="edit">
|
(click)="modify(operation)" title="edit">
|
||||||
<span class="fa fa-pencil-square-o"></span>
|
<span class="fa fa-pencil-square-o"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- Toggle pointed operation, for non-canceled operations. -->
|
<!-- Toggle pointed operation, for non-canceled operations. -->
|
||||||
<button type="button" class="btn btn-secondary"
|
<button type="button" class="btn-floating blue lighten-2"
|
||||||
*ngIf="!operation.canceled"
|
*ngIf="!operation.canceled"
|
||||||
(click)="togglePointed(operation)"
|
(click)="togglePointed(operation)"
|
||||||
[class.active]="operation.pointed" title="point">
|
[class.active]="operation.pointed" title="point">
|
||||||
@ -57,7 +56,7 @@ import { OperationEditModalComponent } from './operationEditModal.component';
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- Toggle canceled operation. -->
|
<!-- Toggle canceled operation. -->
|
||||||
<button type="button" class="btn btn-warning"
|
<button type="button" class="btn-floating orange lighten-2"
|
||||||
(click)="toggleCanceled(operation)"
|
(click)="toggleCanceled(operation)"
|
||||||
*ngIf="operation.scheduled_operation_id"
|
*ngIf="operation.scheduled_operation_id"
|
||||||
[class.active]="operation.canceled" title="cancel">
|
[class.active]="operation.canceled" title="cancel">
|
||||||
@ -65,12 +64,11 @@ import { OperationEditModalComponent } from './operationEditModal.component';
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- Delete operation, with confirm. -->
|
<!-- Delete operation, with confirm. -->
|
||||||
<button type="button" class="btn btn-danger"
|
<button type="button" class="btn-floating red lighten-2"
|
||||||
(click)="confirmDelete(operation)"
|
(click)="confirmDelete(operation)"
|
||||||
*ngIf="operation.id && !operation.scheduled_operation_id">
|
*ngIf="operation.id && !operation.scheduled_operation_id">
|
||||||
<span class="fa fa-trash-o"></span>
|
<span class="fa fa-trash-o"></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user