mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
code refactor
This commit is contained in:
@@ -48,11 +48,11 @@ export class Account implements AccountInfoResponse {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get hidden(): boolean {
|
public get hidden(): boolean {
|
||||||
return !this.visible;
|
return !this.visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
get subAccounts(): AccountInfoResponse[] | undefined {
|
public get subAccounts(): AccountInfoResponse[] | undefined {
|
||||||
if (typeof(this.childrenAccounts) === 'undefined') {
|
if (typeof(this.childrenAccounts) === 'undefined') {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,11 +33,11 @@ export class TransactionCategory implements TransactionCategoryInfoResponse {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get hidden(): boolean {
|
public get hidden(): boolean {
|
||||||
return !this.visible;
|
return !this.visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
get subCategories(): TransactionCategoryInfoResponse[] | undefined {
|
public get subCategories(): TransactionCategoryInfoResponse[] | undefined {
|
||||||
if (typeof(this.secondaryCategories) === 'undefined') {
|
if (typeof(this.secondaryCategories) === 'undefined') {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user