X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2FAppModule.ts;h=5244bb267b0df23b733f30125a7139f5e263d1e2;hb=017df364be742ba4d89013ae32572c2b300e2a29;hp=70f10dc5ad754454c98159fa6325c1ed73e337b7;hpb=07698abcf56f875e53734a29dd4092a53461cc1a;p=osm%2FNG-UI.git diff --git a/src/app/AppModule.ts b/src/app/AppModule.ts index 70f10dc..5244bb2 100644 --- a/src/app/AppModule.ts +++ b/src/app/AppModule.ts @@ -50,6 +50,8 @@ import { NgIdleKeepaliveModule } from '@ng-idle/keepalive'; import { AuthenticationService } from 'AuthenticationService'; import { AuthGuardService } from 'AuthGuardService'; import { BreadcrumbComponent } from 'BreadCrumb'; +import { ChangePasswordComponent } from 'ChangePasswordComponent'; +import { ChangePasswordModule } from 'ChangePasswordModule'; import { ComposePackages } from 'ComposePackages'; import { ConfirmationTopologyComponent } from 'ConfirmationTopology'; import { DeleteComponent } from 'DeleteComponent'; @@ -63,20 +65,26 @@ import { NetsliceInstancesActionComponent } from 'NetsliceInstancesActionCompone import { NetslicePackagesActionComponent } from 'NetslicePackagesAction'; import { NSInstancesActionComponent } from 'NSInstancesActionComponent'; import { NsPackagesActionComponent } from 'NsPackagesAction'; +import { NsUpdateComponent } from 'NsUpdateComponent'; import { PageNotFoundComponent } from 'PageNotFound'; import { PDUInstancesActionComponent } from 'PDUInstancesActionComponent'; import { ProjectLinkComponent } from 'ProjectLinkComponent'; import { ProjectsActionComponent } from 'ProjectsAction'; 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'; import { VNFLinkComponent } from 'VNFLinkComponent'; import { VNFPackagesActionComponent } from 'VNFPackagesAction'; +import { WarningComponent } from 'WarningComponent'; import { WIMAccountsActionComponent } from 'WIMAccountsAction'; /** @@ -123,7 +131,13 @@ const customNotifierOptions: NotifierOptions = { SDNControllerActionComponent, SwitchProjectComponent, GoToTopDirective, - ScalingComponent + ScalingComponent, + ChangePasswordComponent, + VmMigrationComponent, + NsUpdateComponent, + WarningComponent, + StartStopRebuildComponent, + VerticalScalingComponent ], imports: [ NotifierModule.withConfig(customNotifierOptions), @@ -147,7 +161,9 @@ const customNotifierOptions: NotifierOptions = { NgSelectModule, RouterModule.forRoot(appRoutes, { useHash: false, relativeLinkResolution: 'legacy' }), NgIdleKeepaliveModule.forRoot(), - LoaderModule + LoaderModule, + SharedModule, + ChangePasswordModule ], providers: [ { @@ -194,7 +210,13 @@ const customNotifierOptions: NotifierOptions = { PDUInstancesActionComponent, SDNControllerActionComponent, SwitchProjectComponent, - ScalingComponent + ScalingComponent, + ChangePasswordComponent, + VmMigrationComponent, + NsUpdateComponent, + WarningComponent, + StartStopRebuildComponent, + VerticalScalingComponent ] }) @@ -223,7 +245,7 @@ export function appInitializerFactory(translate: TranslateService, injector: Inj translate.setDefaultLang('en'); const languageCode: string = localStorage.getItem('languageCode'); if (languageCode !== null && languageCode !== undefined && languageCode !== '') { - await translate.use(languageCode).toPromise().catch(() => { + await translate.use(languageCode).toPromise().catch((): void => { translate.setDefaultLang('en'); }); } else {