Skip to content

Commit

Permalink
update app properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Mar 25, 2024
1 parent 3d97144 commit 8f7c6eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/components/admin/menu/CommonProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ export const CommonProperties = () => {
setError(err);
setLoading(false); // Set loading to false in case of error
} else {
setCommonProperties(fetchedProperties);
const sortedKeys= Object.keys(fetchedProperties).sort();
let sortedProperties = {};
sortedKeys.forEach(key => {
sortedProperties[key] = fetchedProperties[key];
});
setCommonProperties(sortedProperties);
setLoading(false); // Set loading to false after data is fetched
}
});
Expand Down
5 changes: 5 additions & 0 deletions volume/properties/common.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ org.openelisglobal.requester.phone=230 5123 1234
#Hibernate Config
#spring.jpa.show-sql=true
#spring.jpa.properties.hibernate.format_sql=true

#Paging properties
org.openelisglobal.paging.patients.pageSize=4
org.openelisglobal.paging.results.pageSize=4
org.openelisglobal.paging.validation.pageSize=4

0 comments on commit 8f7c6eb

Please sign in to comment.