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 cc9af15..5f8e6a6 100644 (file)
@@ -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<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');
         }
     };
 }