diff --git a/src/app/pages/portal/portal.component.ts b/src/app/pages/portal/portal.component.ts index f43d78954..0f1b789c6 100644 --- a/src/app/pages/portal/portal.component.ts +++ b/src/app/pages/portal/portal.component.ts @@ -133,7 +133,6 @@ import { TranslateModule } from '@ngx-translate/core'; import { BehaviorSubject, Subscription, combineLatest, of } from 'rxjs'; import { debounceTime, first, pairwise, skipWhile, take } from 'rxjs/operators'; import { getAppVersion } from 'src/app/app.utils'; -import { environment } from 'src/environments/environment'; import { EnvironmentOptions } from 'src/environments/environnement.interface'; import { ExpansionPanelButtonComponent } from './expansion-panel/expansion-panel-button/expansion-panel-button.component'; @@ -598,7 +597,7 @@ export class PortalComponent implements OnInit, OnDestroy { .subscribe(() => this.computeToastPanelOffsetX()); if ( - environment.igo.offline?.enable && + this.appConfig.app.offline?.enable && this.appConfig.importExport?.configFileToGeoDBService ) { this.configFileToGeoDBService?.load( diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 65bd5fd45..175f888af 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -15,6 +15,9 @@ export const environment: AppEnvironmentOptions = { }, pwa: { enabled: false + }, + offline: { + enable: true } }, auth: { @@ -238,9 +241,6 @@ export const environment: AppEnvironmentOptions = { tourInMobile: true, pathToConfigFile: './config/interactiveTour.json' }, - offline: { - enable: true - }, importExport: { importWithStyle: false, url: '/apis/ogre', diff --git a/src/main.ts b/src/main.ts index 6995be5fd..dc4b22b05 100644 --- a/src/main.ts +++ b/src/main.ts @@ -71,7 +71,7 @@ bootstrapApplication(AppComponent, { withMicrosoftSupport('add'), withMicrosoftSupport('b2c') ), - provideOffline(environment.igo.offline), + provideOffline(environment.igo.app.offline), provideIcon(), provideTheme(), RouteService,