Fix operation table styles.
This commit is contained in:
@ -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: `
|
||||
<td>{{ operation.id }}</td>
|
||||
@ -29,8 +30,9 @@ import { OperationEditModalComponent } from './operationEditModal.component';
|
||||
|
||||
<td>{{ operation.value | currency:'EUR':true }}</td>
|
||||
|
||||
<td [class.text-warning]="operation.balance < 0"
|
||||
[class.text-danger]="operation.balance < account.authorized_overdraft">
|
||||
<td class="test-lighten-2"
|
||||
[class.orange-text]="account.authorized_overdraft < 0 && operation.balance < 0"
|
||||
[class.red-text]="operation.balance < account.authorized_overdraft">
|
||||
{{ operation.balance | currency:'EUR':true }}
|
||||
</td>
|
||||
|
||||
|
Reference in New Issue
Block a user