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