diff --git a/src/operations/operationList.component.ts b/src/operations/operationList.component.ts index df5a2f9..db38137 100644 --- a/src/operations/operationList.component.ts +++ b/src/operations/operationList.component.ts @@ -34,7 +34,7 @@ import { OperationEditModalComponent } from './operationEditModal.component';
- +
@@ -49,8 +49,8 @@ import { OperationEditModalComponent } from './operationEditModal.component'; - diff --git a/src/operations/operationRow.component.ts b/src/operations/operationRow.component.ts index 0d9db50..44d4e29 100644 --- a/src/operations/operationRow.component.ts +++ b/src/operations/operationRow.component.ts @@ -17,8 +17,9 @@ import { OperationEditModalComponent } from './operationEditModal.component'; "[id]": "operation.id", "[class.stroke]": "operation.canceled", "[class.italic]": "!operation.confirmed", - "[class.warning]": "operation.balance < 0", - "[class.danger]": "operation.balance < account.authorized_overdraft" + "class": "lighten-5", + "[class.orange]": "account.authorized_overdraft < 0 && operation.balance < 0", + "[class.red]": "operation.balance < account.authorized_overdraft" }, template: ` @@ -29,8 +30,9 @@ import { OperationEditModalComponent } from './operationEditModal.component'; -
#
- + {{ operation.id }}{{ operation.value | currency:'EUR':true }} + {{ operation.balance | currency:'EUR':true }}