Change property visibility.

This commit is contained in:
Alexis Lahouze 2018-06-05 08:34:28 +02:00
parent 406ae3aae0
commit 4aea098e3d
9 changed files with 38 additions and 37 deletions

View File

@ -3,13 +3,13 @@
import { AccountBalances } from './accountBalances';
export class Account {
id: number;
name: string;
authorized_overdraft: number;
public id: number;
public name: string;
public authorized_overdraft: number;
balances: AccountBalances;
public balances: AccountBalances;
constructor() {
public constructor() {
this.authorized_overdraft = 0;
}
}

View File

@ -1,6 +1,6 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
export class AccountBalances {
current: number;
pointed: number;
future: number;
public current: number;
public pointed: number;
public future: number;
}

View File

@ -26,18 +26,18 @@ import { AccountEditModalComponent } from './accountEditModal.component';
</td>
<td>
<span (ngClass)="valueClass(account, accountBalances?.current)">
{{ accountBalances?.current | currency:"EUR":true }}
<span (ngClass)="valueClass(accountBalances?.current)">
{{ accountBalances?.current | currency:'EUR':'symbol' }}
</span>
</td>
<td>
<span (ngClass)="valueClass(account, accountBalances?.pointed)">
{{ accountBalances?.pointed | currency:"EUR":true }}
<span (ngClass)="valueClass(accountBalances?.pointed)">
{{ accountBalances?.pointed | currency:'EUR':'symbol' }}
</span>
</td>
<td>{{ account.authorized_overdraft | currency:"EUR":true }}</td>
<td>{{ account.authorized_overdraft | currency:'EUR':'symbol' }}</td>
<td>
<div class="btn-group btn-group-sm">
@ -67,7 +67,7 @@ export class AccountRowComponent implements OnInit {
@Input('account-row') account: Account;
@Output() needsReload: EventEmitter<void> = new EventEmitter<void>();
private accountBalances: AccountBalances;
public accountBalances: AccountBalances;
constructor(
private accountService: AccountService,

View File

@ -1,8 +1,8 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
export class DailyBalance {
operation_date: string;
balance: number;
expenses: number;
revenues: number;
public operation_date: string;
public balance: number;
public expenses: number;
public revenues: number;
}

View File

@ -1,6 +1,6 @@
// vim: set tw=80 ts=2 sw=2 sts=2:
export class Login {
email: string;
password: string;
public email: string;
public password: string;
}

View File

@ -1,6 +1,6 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
export class Token {
access_token: string;
refresh_token: string;
public access_token: string;
public refresh_token: string;
}

View File

@ -1,7 +1,8 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
export class Category {
category: string;
expenses: number;
revenues: number;
public category: string;
public expenses: number;
public revenues: number;
public income: number;
}

View File

@ -1,15 +1,15 @@
// vim: set tw=80 ts=2 sw=2 sts=2:
export class Operation {
id: number;
operation_date: string;
label: string;
value: number;
category: string;
scheduled_operation_id: number;
account_id: number;
balance: number;
confirmed: boolean;
pointed: boolean;
cancelled: boolean
public id: number;
public operation_date: string;
public label: string;
public value: number;
public category: string;
public scheduled_operation_id: number;
public account_id: number;
public balance: number;
public confirmed: boolean;
public pointed: boolean;
public canceled: boolean
}

View File

@ -70,7 +70,7 @@ export class OperationListComponent implements OnInit {
private account: Account;
private minDate: Date;
private maxDate: Date;
private operations: Operation[];
public operations: Operation[];
constructor(
private toastrService: ToastrService,