WEB-639: Refactor redundant boolean comparisons (#3063)
improve improve improve improve
This commit is contained in:
@@ -121,7 +121,7 @@ export class CreateOfficeComponent implements OnInit, AfterViewInit {
|
||||
locale
|
||||
};
|
||||
this.organizationService.createOffice(data).subscribe((response) => {
|
||||
if (this.configurationWizardService.showOfficeForm === true) {
|
||||
if (this.configurationWizardService.showOfficeForm) {
|
||||
this.configurationWizardService.showOfficeForm = false;
|
||||
this.openDialog();
|
||||
} else {
|
||||
@@ -176,7 +176,7 @@ export class CreateOfficeComponent implements OnInit, AfterViewInit {
|
||||
* To show popover.
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
if (this.configurationWizardService.showOfficeForm === true) {
|
||||
if (this.configurationWizardService.showOfficeForm) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(this.templateCreateOfficeForm, this.createOfficeFormRef.nativeElement, 'right', true);
|
||||
});
|
||||
|
||||
@@ -240,12 +240,12 @@ export class OfficesComponent implements OnInit, AfterViewInit {
|
||||
* To show popover.
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
if (this.configurationWizardService.showOfficeList === true) {
|
||||
if (this.configurationWizardService.showOfficeList) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(this.templateButtonTreeView, this.buttonTreeView.nativeElement, 'bottom', true);
|
||||
});
|
||||
}
|
||||
if (this.configurationWizardService.showOfficeTable === true) {
|
||||
if (this.configurationWizardService.showOfficeTable) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(this.templateTableOffices, this.tableOffices.nativeElement, 'top', true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user