diff --git a/packages/apps/esm-login-app/src/change-location-link/change-location-link.extension.tsx b/packages/apps/esm-login-app/src/change-location-link/change-location-link.extension.tsx
index 1f4e4352d..274189df9 100644
--- a/packages/apps/esm-login-app/src/change-location-link/change-location-link.extension.tsx
+++ b/packages/apps/esm-login-app/src/change-location-link/change-location-link.extension.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
-import { Button, SwitcherItem } from '@carbon/react';
+import { Button, SwitcherItem , HeaderGlobalAction } from '@carbon/react';
import { LocationIcon, navigate, useSession } from '@openmrs/esm-framework';
import styles from './change-location-link.scss';
@@ -18,15 +18,14 @@ const ChangeLocationLink: React.FC = () => {
};
return (
-
-
-
-
+
+
+ {currentLocation}
+
);
};
diff --git a/packages/apps/esm-login-app/src/change-location-link/change-location-link.scss b/packages/apps/esm-login-app/src/change-location-link/change-location-link.scss
index 565871148..fc0ad69f6 100644
--- a/packages/apps/esm-login-app/src/change-location-link/change-location-link.scss
+++ b/packages/apps/esm-login-app/src/change-location-link/change-location-link.scss
@@ -1,3 +1,4 @@
+@use '@carbon/layout';
@import '~@openmrs/esm-styleguide/src/vars';
@import '../root.scss';
@@ -11,3 +12,15 @@
display: flex;
align-items: center;
}
+
+.changeLocationButton {
+ width: fit-content;
+ background-color: transparent;
+ color: white;
+ font-size: 14px;
+ padding: layout.$spacing-04 !important; // this gets unset in rtl language without !important
+}
+
+.currentLocationText {
+ padding-inline-start: layout.$spacing-03;
+}
diff --git a/packages/apps/esm-login-app/src/routes.json b/packages/apps/esm-login-app/src/routes.json
index 6f0a6fa92..d10fbfb5e 100644
--- a/packages/apps/esm-login-app/src/routes.json
+++ b/packages/apps/esm-login-app/src/routes.json
@@ -47,7 +47,7 @@
},
{
"name": "location-changer",
- "slot": "user-panel-slot",
+ "slot": "top-nav-info-slot",
"component": "changeLocationLink",
"online": true,
"offline": true,
diff --git a/packages/apps/esm-login-app/translations/en.json b/packages/apps/esm-login-app/translations/en.json
index 397bb9628..4675c40c4 100644
--- a/packages/apps/esm-login-app/translations/en.json
+++ b/packages/apps/esm-login-app/translations/en.json
@@ -2,6 +2,7 @@
"builtWith": "Built with",
"cancel": "Cancel",
"change": "Change",
+ "changeLocation": "Change location",
"changePassword": "Change password",
"changingPassword": "Changing password",
"confirmPassword": "Confirm new password",
diff --git a/packages/apps/esm-primary-navigation-app/src/components/navbar/navbar.component.tsx b/packages/apps/esm-primary-navigation-app/src/components/navbar/navbar.component.tsx
index 39301bc26..40b1df969 100644
--- a/packages/apps/esm-primary-navigation-app/src/components/navbar/navbar.component.tsx
+++ b/packages/apps/esm-primary-navigation-app/src/components/navbar/navbar.component.tsx
@@ -67,7 +67,8 @@ const HeaderItems: React.FC = () => {
-
+
+