Skip to content

Commit

Permalink
add. functionality to close accordions by config
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun-Go committed Sep 25, 2024
1 parent a4f2f7a commit 7538ba5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export function FormDisplayControl(props) {
<AccordionItem
title={value[0].formNameTranslations}
className={"form-accordion"}
open
open={props?.hostData?.closeAccordionsByDefault ? false : true}
>
{value.map((entry, index) => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
background: #fff;
padding: 5px;
color: #444 !important;
max-height: 20rem;
overflow-y: scroll;

.form-name {
width: 42%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ angular.module('bahmni.common.displaycontrol.dashboard')
consultationMapper: new Bahmni.ConsultationMapper(configurations.dosageFrequencyConfig(), configurations.dosageInstructionConfig(),
configurations.consultationNoteConcept(), configurations.labOrderNotesConcept()),
editErrorMessage: $translate.instant('CLINICAL_FORM_ERRORS_MESSAGE_KEY'),
showPrintOption: (dashboardConfig && dashboardConfig.printing) ? true : false
showPrintOption: !!(dashboardConfig && dashboardConfig.printing),
closeAccordionsByDefault: !!(dashboardConfig && dashboardConfig.closeAccordionsByDefault)
};
$scope.formApi = {
handleEditSave: function (encounter) {
Expand Down

0 comments on commit 7538ba5

Please sign in to comment.