diff --git a/project/ws/app/src/lib/routes/home/routes/designation/components/designations/designations.component.ts b/project/ws/app/src/lib/routes/home/routes/designation/components/designations/designations.component.ts index 0c640d1d9..c2d96b1e3 100644 --- a/project/ws/app/src/lib/routes/home/routes/designation/components/designations/designations.component.ts +++ b/project/ws/app/src/lib/routes/home/routes/designation/components/designations/designations.component.ts @@ -132,7 +132,7 @@ export class DesignationsComponent implements OnInit { } else { setTimeout(() => { this.getOrgReadData() - }, _.get(this.designationConfig, 'refreshDelayTime', 10000)) + }, _.get(this.designationConfig, 'refreshDelayTime', 10000)) } // console.log('orgFramework Details', res) }) @@ -309,7 +309,7 @@ export class DesignationsComponent implements OnInit { if (action && action === 'delete') { this.openSnackbar(_.get(this.designationConfig, 'termRemoveMsg')) } - }, _.get(this.designationConfig, 'refreshDelayTime', 10000)) + }, _.get(this.designationConfig, 'refreshDelayTime', 10000)) } }, error: () => { diff --git a/project/ws/app/src/lib/routes/home/routes/designation/components/import-designation/import-designation.component.ts b/project/ws/app/src/lib/routes/home/routes/designation/components/import-designation/import-designation.component.ts index 2597eeccb..13e301be6 100644 --- a/project/ws/app/src/lib/routes/home/routes/designation/components/import-designation/import-designation.component.ts +++ b/project/ws/app/src/lib/routes/home/routes/designation/components/import-designation/import-designation.component.ts @@ -247,7 +247,7 @@ export class ImportDesignationComponent implements OnInit, OnDestroy { this.openSnackbar(errorMessage) this.designationsImportFailed = [] } else { - if (retry === false) { + if (!retry) { this.progressDialogData['subTitle'] = _.get(this.designationConfig, 'associationUpdateMsg') } const framework = _.get(this.frameworkInfo, 'code') @@ -289,7 +289,7 @@ export class ImportDesignationComponent implements OnInit, OnDestroy { if (response) { setTimeout(() => { this.dialogRef.close(true) - }, _.get(this.designationConfig, 'refreshDelayTime', 10000)) + }, _.get(this.designationConfig, 'refreshDelayTime', 10000)) } }, error: () => { @@ -306,7 +306,7 @@ export class ImportDesignationComponent implements OnInit, OnDestroy { icon: 'vega', title: _.get(this.designationConfig, 'importingDesignation'), subTitle: _.get(this.designationConfig, 'termCreationMsg'), - showLoader: true + showLoader: true, } this.dialogRef = this.dialog.open(ConfirmationBoxComponent, { disableClose: true, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 201538852..1e6e66986 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -25,6 +25,7 @@ import { MatCheckboxModule, MatNativeDateModule, MatSortModule, + MatProgressSpinnerModule, } from '@angular/material' import { BrowserModule, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser' import { BrowserAnimationsModule } from '@angular/platform-browser/animations' @@ -145,6 +146,7 @@ const getBaseHref = (platformLocation: PlatformLocation): string => { PipeSafeSanitizerModule, TourModule, PublicLogoutModule, + MatProgressSpinnerModule, ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }), ], exports: [