WEB-639: Refactor redundant boolean comparisons (#3063)
improve improve improve improve
This commit is contained in:
@@ -84,17 +84,17 @@ export class AccountingComponent implements AfterViewInit {
|
||||
* To show popover.
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
if (this.configurationWizardService.showChartofAccounts === true) {
|
||||
if (this.configurationWizardService.showChartofAccounts) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(this.templateChartofAccounts, this.chartofAccounts.nativeElement, 'bottom', true);
|
||||
});
|
||||
}
|
||||
if (this.configurationWizardService.showAccountsLinked === true) {
|
||||
if (this.configurationWizardService.showAccountsLinked) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(this.templateAccountsLinked, this.accountsLinked.nativeElement, 'bottom', true);
|
||||
});
|
||||
}
|
||||
if (this.configurationWizardService.showMigrateOpeningBalances === true) {
|
||||
if (this.configurationWizardService.showMigrateOpeningBalances) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(
|
||||
this.templateMigrateOpeningBalances,
|
||||
@@ -104,12 +104,12 @@ export class AccountingComponent implements AfterViewInit {
|
||||
);
|
||||
});
|
||||
}
|
||||
if (this.configurationWizardService.showClosingEntries === true) {
|
||||
if (this.configurationWizardService.showClosingEntries) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(this.templateClosingEntries, this.closingEntries.nativeElement, 'bottom', true);
|
||||
});
|
||||
}
|
||||
if (this.configurationWizardService.showCreateJournalEntries === true) {
|
||||
if (this.configurationWizardService.showCreateJournalEntries) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(this.templateCreateJournalEntries, this.createJournalEntries.nativeElement, 'bottom', true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user