Skip to content

Commit

Permalink
update translationkey for next-ui allergies panel (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun-Go authored Jul 24, 2023
1 parent 9c8d596 commit 2dca64b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion ui/app/clinical/dashboard/views/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
active-visit-uuid="visitHistory.activeVisit.uuid" visit-summary="visitSummary" enrollment="enrollment">
</dashboard>
<mfe-ipd-dashboard ng-if="loadIPD" style="margin: 45px auto 0; display: block;"></mfe-ipd-dashboard>
<mfe-next-ui-patient-alergies-control ng-if="loadIPD" style="display: block;" host-data="alergyData" host-api="alergyApi"></mfe-next-ui-patient-alergies-control>
<mfe-next-ui-patient-alergies-control ng-if="loadAllergies" style="display: block;" host-data="alergyData" host-api="alergyApi"></mfe-next-ui-patient-alergies-control>
<div ng-show ="!loadIPD && !stateChange()" ui-view="consultation-content" class="consultation-content"></div>
3 changes: 2 additions & 1 deletion ui/app/i18n/clinical/locale_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,5 +375,6 @@
"CHIEF_COMPLAINT_CODED_KEY": "Chief Complaint Coded",
"SIGN_SYMPTOM_DURATION_KEY": "Sign/symptom duration",
"CHIEF_COMPLAINT_DURATION_UNIT_KEY": "Chief Complaint Duration",
"DASHBOARD_IPD_DRUG_CHART_TAB_KEY": "Drug Chart"
"DASHBOARD_IPD_DRUG_CHART_TAB_KEY": "Drug Chart",
"DASHBOARD_NEXT_UI_ALLERGIES_KEY": "Allergies"
}

0 comments on commit 2dca64b

Please sign in to comment.