aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/modules
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-09-23 13:39:16 +0200
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-09-24 11:46:57 +0200
commite964f1c1be44ef74877531870c119aa110555ca1 (patch)
treeeed038ca967edd10309ef527ceac9cbf9fd5e9d0 /src/app/modules
parent143be69ed4d2353349f5b7030c3bb1ce1a166a99 (diff)
Upgrade packages to current Angular 13 level
- upgrade angular-oauth2-oidc (12.1.0 -> 13.0.1) - upgrade ngx-translate (13.0.0 -> 14.0.0) - upgrade rxjs (6.6.7 -> 7.4.0) - remove ng-bootstrap - bump version to 0.1.1 Issue-ID: PORTALNG-120 Change-Id: I0672a7e794e965677ef5d818163ec080734e11e0 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'src/app/modules')
-rw-r--r--src/app/modules/dashboard/apps/user-last-action-tile/user-last-action-tile.component.ts4
-rw-r--r--src/app/modules/i18n/i18n.module.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/app/modules/dashboard/apps/user-last-action-tile/user-last-action-tile.component.ts b/src/app/modules/dashboard/apps/user-last-action-tile/user-last-action-tile.component.ts
index c03016f..ee477b5 100644
--- a/src/app/modules/dashboard/apps/user-last-action-tile/user-last-action-tile.component.ts
+++ b/src/app/modules/dashboard/apps/user-last-action-tile/user-last-action-tile.component.ts
@@ -61,12 +61,12 @@ export class UserLastActionTileComponent implements OnInit {
.pipe(shareReplay({ refCount: true, bufferSize: 1 }));
public actionFilterType$ = this.userActionsSettings$.pipe(
- selectDistinctState<LastUserActionSettings, ActionFilter>(STATE_KEYS.FILTER_TYPE),
+ selectDistinctState<LastUserActionSettings, ActionFilter>(STATE_KEYS.FILTER_TYPE as keyof LastUserActionSettings),
shareReplay({ refCount: true, bufferSize: 1 }),
);
public actionIntervalType$ = this.userActionsSettings$.pipe(
- selectDistinctState<LastUserActionSettings, ActionInterval>(STATE_KEYS.INTERVAL),
+ selectDistinctState<LastUserActionSettings, ActionInterval>(STATE_KEYS.INTERVAL as keyof LastUserActionSettings),
shareReplay({ refCount: true, bufferSize: 1 }),
);
diff --git a/src/app/modules/i18n/i18n.module.ts b/src/app/modules/i18n/i18n.module.ts
index 52bedbe..a6a1da6 100644
--- a/src/app/modules/i18n/i18n.module.ts
+++ b/src/app/modules/i18n/i18n.module.ts
@@ -41,7 +41,7 @@ import { TranslateHttpLoader } from '@ngx-translate/http-loader';
export class I18nModule {
constructor(translate: TranslateService) {
translate.addLangs(['en', 'de']);
- const browserLang = translate.getBrowserLang();
+ const browserLang = translate.getBrowserLang() ?? 'en';
translate.use(browserLang.match(/en|de/) ? browserLang : 'en');
}
}