X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2FAppModule.ts;h=5f8e6a68301e52c39340aa6e0c7db6d197caed3e;hb=refs%2Ftags%2Fv12.0.8;hp=cc9af15cfe2606e1221fdedd49d283ac33aaee1b;hpb=99144589707c8c854149258c87cd3871b4c4f6be;p=osm%2FNG-UI.git diff --git a/src/app/AppModule.ts b/src/app/AppModule.ts index cc9af15..5f8e6a6 100644 --- a/src/app/AppModule.ts +++ b/src/app/AppModule.ts @@ -74,9 +74,11 @@ import { ScalingComponent } from 'ScalingComponent'; import { SDNControllerActionComponent } from 'SDNControllerActionComponent'; import { SharedModule } from 'SharedModule'; import { ShowInfoComponent } from 'ShowInfoComponent'; +import { StartStopRebuildComponent } from 'StartStopRebuildComponent'; import { SwitchProjectComponent } from 'SwitchProjectComponent'; import { UsersActionComponent } from 'UsersActionComponent'; import { UserSettingsComponent } from 'UserSettingsComponent'; +import { VerticalScalingComponent } from 'VerticalScalingComponent'; import { VimAccountsActionComponent } from 'VimAccountsAction'; import { VmMigrationComponent } from 'VmMigrationComponent'; import { VNFInstancesActionComponent } from 'VNFInstancesActionComponent'; @@ -133,7 +135,9 @@ const customNotifierOptions: NotifierOptions = { ChangePasswordComponent, VmMigrationComponent, NsUpdateComponent, - WarningComponent + WarningComponent, + StartStopRebuildComponent, + VerticalScalingComponent ], imports: [ NotifierModule.withConfig(customNotifierOptions), @@ -210,7 +214,9 @@ const customNotifierOptions: NotifierOptions = { ChangePasswordComponent, VmMigrationComponent, NsUpdateComponent, - WarningComponent + WarningComponent, + StartStopRebuildComponent, + VerticalScalingComponent ] }) @@ -237,14 +243,14 @@ export function appInitializerFactory(translate: TranslateService, injector: Inj return async (): Promise => { await injector.get(LOCATION_INITIALIZED, Promise.resolve(null)); translate.setDefaultLang('en'); - const languageCode: string = localStorage.getItem('languageCode'); + const languageCode: string = sessionStorage.getItem('languageCode'); if (languageCode !== null && languageCode !== undefined && languageCode !== '') { await translate.use(languageCode).toPromise().catch((): void => { translate.setDefaultLang('en'); }); } else { await translate.use('en').toPromise(); - localStorage.setItem('languageCode', 'en'); + sessionStorage.setItem('languageCode', 'en'); } }; }