Fix bug 2232: change deployment option helm-chart-v2 to helm-chart so that NBI accepts it
[osm/NG-UI.git] / src / app / AppModule.ts
index 30c6842..5f8e6a6 100644 (file)
@@ -78,6 +78,7 @@ 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';
@@ -135,7 +136,8 @@ const customNotifierOptions: NotifierOptions = {
         VmMigrationComponent,
         NsUpdateComponent,
         WarningComponent,
-        StartStopRebuildComponent
+        StartStopRebuildComponent,
+        VerticalScalingComponent
     ],
     imports: [
         NotifierModule.withConfig(customNotifierOptions),
@@ -213,7 +215,8 @@ const customNotifierOptions: NotifierOptions = {
         VmMigrationComponent,
         NsUpdateComponent,
         WarningComponent,
-        StartStopRebuildComponent
+        StartStopRebuildComponent,
+        VerticalScalingComponent
     ]
 })
 
@@ -240,14 +243,14 @@ export function appInitializerFactory(translate: TranslateService, injector: Inj
     return async (): Promise<any> => {
         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');
         }
     };
 }