Style, comment.
This commit is contained in:
parent
0d65f5318a
commit
8f28d14201
@ -70,7 +70,7 @@ angular.module('accountant.accounts', [
|
||||
return;
|
||||
}
|
||||
|
||||
if(account.current <account.authorized_overdraft) {
|
||||
if(account.current < account.authorized_overdraft) {
|
||||
return 'danger';
|
||||
} else if(account.current < 0) {
|
||||
return 'warning';
|
||||
@ -100,6 +100,7 @@ angular.module('accountant.accounts', [
|
||||
authorized_overdraft: 0
|
||||
});
|
||||
|
||||
// Insert account at the begining of the array.
|
||||
$scope.accounts.splice(0, 0, account);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user