From c1232ff2a4c043ae0f00940be67d37e531f35490 Mon Sep 17 00:00:00 2001
From: Arjun G <91885483+Arjun-Go@users.noreply.github.com>
Date: Mon, 24 Jul 2023 16:00:53 +0530
Subject: [PATCH] update translationkey for next-ui allergies panel (#651)
---
.../dashboard/controllers/patientDashboardController.js | 1 +
ui/app/clinical/dashboard/views/dashboard.html | 2 +-
ui/app/i18n/clinical/locale_en.json | 3 ++-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ui/app/clinical/dashboard/controllers/patientDashboardController.js b/ui/app/clinical/dashboard/controllers/patientDashboardController.js
index baecfa8f49..69465cb835 100644
--- a/ui/app/clinical/dashboard/controllers/patientDashboardController.js
+++ b/ui/app/clinical/dashboard/controllers/patientDashboardController.js
@@ -91,6 +91,7 @@ angular.module('bahmni.clinical')
$state.current.views['dashboard-content'].templateUrl : $state.current.views['dashboard-content'];
$scope.loadIPD = dashboard.translationKey === "DASHBOARD_IPD_DRUG_CHART_TAB_KEY";
+ $scope.loadAllergies = dashboard.translationKey === "DASHBOARD_NEXT_UI_ALLERGIES_KEY";
};
$scope.init(getCurrentTab());
diff --git a/ui/app/clinical/dashboard/views/dashboard.html b/ui/app/clinical/dashboard/views/dashboard.html
index 410f5ef04a..929c0fbb72 100644
--- a/ui/app/clinical/dashboard/views/dashboard.html
+++ b/ui/app/clinical/dashboard/views/dashboard.html
@@ -4,5 +4,5 @@
active-visit-uuid="visitHistory.activeVisit.uuid" visit-summary="visitSummary" enrollment="enrollment">