-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add all locations list view submenu #1340
Conversation
b794ff0
to
af9955f
Compare
packages/fhir-location-management/src/components/AllLocationListFlat/index.tsx
Outdated
Show resolved
Hide resolved
d49601e
to
4d52dc8
Compare
2ed12af
to
17c8786
Compare
Populate parent column data from parent resources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ciremusyoka When I tested this branch. I noticed
packages/fhir-location-management/src/components/AllLocationListFlat/index.tsx
Outdated
Show resolved
Hide resolved
packages/fhir-location-management/src/components/AllLocationListFlat/index.tsx
Outdated
Show resolved
Hide resolved
packages/fhir-location-management/src/components/AllLocationListFlat/index.tsx
Outdated
Show resolved
Hide resolved
const getTableLocale = () => { | ||
const urlQuery = history.location.search; | ||
const nameSearchActive = urlQuery.includes('search='); | ||
if (!tableData.length && (!isFetching || !isLoading)) { | ||
const description = nameSearchActive | ||
? '' | ||
: t('No data available to display, you can start adding data now '); | ||
return { | ||
emptyText: ( | ||
<NoData description={description}>{!nameSearchActive && <AddLocationBtn />}</NoData> | ||
), | ||
}; | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏿
<Helmet> | ||
<title>{t('All Locations List')}</title> | ||
</Helmet> | ||
<PageHeader title={t('All Locations Flat')} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change title to All Locations
Update getItems - to handle onClick later
5e5bf3d
to
663ad16
Compare
closes #1331
Include option for flat listing of locations instead of hierarchical
Changes included with this PR
Checklist