WEB-639: Refactor redundant boolean comparisons (#3063)
improve improve improve improve
This commit is contained in:
@@ -142,12 +142,12 @@ export class CodesComponent implements OnInit, AfterViewInit {
|
||||
* To show popover.
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
if (this.configurationWizardService.showSystemCodesPage === true) {
|
||||
if (this.configurationWizardService.showSystemCodesPage) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(this.templateButtonCreateCode, this.buttonCreateCode.nativeElement, 'bottom', true);
|
||||
});
|
||||
}
|
||||
if (this.configurationWizardService.showSystemCodesList === true) {
|
||||
if (this.configurationWizardService.showSystemCodesList) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(this.templateTableCodes, this.tableCodes.nativeElement, 'top', true);
|
||||
});
|
||||
|
||||
@@ -67,7 +67,7 @@ export class CreateCodeComponent implements OnInit, AfterViewInit {
|
||||
*/
|
||||
submit() {
|
||||
this.systemService.createCode(this.codeForm.value).subscribe((response: any) => {
|
||||
if (this.configurationWizardService.showSystemCodesForm === true) {
|
||||
if (this.configurationWizardService.showSystemCodesForm) {
|
||||
this.configurationWizardService.showSystemCodesForm = false;
|
||||
this.configurationWizardService.showRolesandPermission = true;
|
||||
this.router.navigate(['/system']);
|
||||
@@ -103,7 +103,7 @@ export class CreateCodeComponent implements OnInit, AfterViewInit {
|
||||
* To show popover.
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
if (this.configurationWizardService.showSystemCodesForm === true) {
|
||||
if (this.configurationWizardService.showSystemCodesForm) {
|
||||
setTimeout(() => {
|
||||
this.showPopover(this.templateCodeFormRef, this.codeFormRef.nativeElement, 'right', true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user