From c91d10c2f50ed67afbe4b18a4bfbcfc33ffa5d90 Mon Sep 17 00:00:00 2001 From: Jose Francisco <94977371+icrc-jofrancisco@users.noreply.github.com> Date: Mon, 27 Nov 2023 15:20:47 +0000 Subject: [PATCH] (fix) Restore offline patient banner (#818) --- packages/apps/esm-primary-navigation-app/src/index.ts | 3 +++ packages/apps/esm-primary-navigation-app/src/routes.json | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/packages/apps/esm-primary-navigation-app/src/index.ts b/packages/apps/esm-primary-navigation-app/src/index.ts index 6944a4119..cef447249 100644 --- a/packages/apps/esm-primary-navigation-app/src/index.ts +++ b/packages/apps/esm-primary-navigation-app/src/index.ts @@ -13,6 +13,7 @@ import { syncUserLanguagePreference } from "./offline"; import primaryNavRootComponent from "./root.component"; import userPanelComponent from "./components/user-panel-switcher-item/user-panel-switcher.component"; import localeChangerComponent from "./components/choose-locale/change-locale.component"; +import offlineBannerComponent from "./components/offline-banner/offline-banner.component"; import genericLinkComponent, { genericLinkConfigSchema, } from "./components/generic-link/generic-link.component"; @@ -48,6 +49,8 @@ export const userPanel = getSyncLifecycle(userPanelComponent, options); export const localeChanger = getSyncLifecycle(localeChangerComponent, options); +export const offlineBanner = getSyncLifecycle(offlineBannerComponent, options); + export const linkComponent = getSyncLifecycle(genericLinkComponent, { featureName: "Link", moduleName, diff --git a/packages/apps/esm-primary-navigation-app/src/routes.json b/packages/apps/esm-primary-navigation-app/src/routes.json index 6334a6aff..087767b29 100644 --- a/packages/apps/esm-primary-navigation-app/src/routes.json +++ b/packages/apps/esm-primary-navigation-app/src/routes.json @@ -36,6 +36,14 @@ "offline": true, "order": 1 }, + { + "name": "offline-banner", + "slot": "user-panel-slot", + "component": "offlineBanner", + "online": false, + "offline": true, + "order": 1 + }, { "name": "link", "component": "linkComponent",