Skip to content

Commit

Permalink
allow assignment page to show more organizations
Browse files Browse the repository at this point in the history
  • Loading branch information
trevlenb2 committed Jan 13, 2024
1 parent 9856b0a commit 34106dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
10 changes: 3 additions & 7 deletions src/features/organization/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ export const getOrganizationCount = async (): Promise<{ count: number }> => {

export const getOrganizationListSummary = async (): Promise<PageableModel<OrganizationModel>> => {
const data = await api
.get<PageableModel<OrganizationModel>>(ORGANIZATION + '?_summary=TRUE&root=false&size=100&page=0')
.get<PageableModel<OrganizationModel>>(ORGANIZATION + '?_summary=TRUE&root=false&size=500&page=0')
.then(response => response.data);
return data;
};

export const getOrganizationById = async (id: string): Promise<OrganizationModel> => {
const data = await api
.get<OrganizationModel>(ORGANIZATION + `/${id}`)
.then(response => response.data);
const data = await api.get<OrganizationModel>(ORGANIZATION + `/${id}`).then(response => response.data);
return data;
};

Expand All @@ -58,8 +56,6 @@ export const deleteOrganizationById = async (id: string): Promise<OrganizationMo
};

export const getSecurityGroups = async (): Promise<Groups[]> => {
const data = await api
.get<Groups[]>(KEYCLOAK_SECURITY_GROUPS)
.then(response => response.data);
const data = await api.get<Groups[]>(KEYCLOAK_SECURITY_GROUPS).then(response => response.data);
return data;
};
6 changes: 3 additions & 3 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"search": "Search"
},
"locationsPage": {
"geographicLevels": "Geographic Levels",
"geographicLevels": "Geographic Level",
"locationHierarchy": "Location Hierarchy",
"locations": "Location Inspector",
"locationsBulk": "Location Import",
Expand Down Expand Up @@ -236,8 +236,8 @@
"country": "Country",
"entity": "Entity",
"hierarchy": "Hierarchy",
"location": "Location",
"geographicLevel": "Geographic Level",
"location": "Parent Location",
"geographicLevel": "Geographic Level of Parent Location",
"filterGeographicLevel": "Geographic Level Filter",
"loadInactiveLocations": "Load inactive locations",
"selectToLoadInactiveLocations": "Select to Load Inactive Locations",
Expand Down

0 comments on commit 34106dc

Please sign in to comment.