Skip to content

Commit

Permalink
Merge pull request #1014 from opensrp/585-fhir-user-management
Browse files Browse the repository at this point in the history
585 fhir user management
  • Loading branch information
machariamuguku authored May 23, 2022
2 parents b1d5515 + 25015b2 commit 1585013
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/fhir-care-team/src/components/ListView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const CareTeamList: React.FC<CareTeamListPropTypes> = (props: CareTeamLis
<Row className="list-view">
<Col className="main-content">
<div className="main-content__header">
<SearchForm {...searchFormProps} />
<SearchForm {...searchFormProps} disabled />
<Link to={URL_CREATE_CARE_TEAM}>
<Button type="primary">
<PlusOutlined />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const GroupList = (props: GroupListProps) => {
<Row className="list-view">
<Col className="main-content">
<div className="main-content__header">
<SearchForm data-testid="search-form" {...searchFormProps} />
<SearchForm data-testid="search-form" {...searchFormProps} disabled />
<Link to="#">
<Button disabled type="primary">
<PlusOutlined />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getTableColumns = (
): Column<KeycloakUser>[] => {
// eslint-disable-next-line @typescript-eslint/naming-convention
const { user_id } = extraData;
const headerItems: string[] = ['Username', 'First name', 'Last name', 'Email'];
const headerItems: string[] = ['Email', 'First name', 'Last name', 'Username'];
const dataElements: Column<KeycloakUser>[] = [];
const fields: string[] = ['email', 'firstName', 'lastName', 'username'];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ export const ViewDetails = (props: ViewDetailsProps) => {
) : practitioner ? (
renderObjectAsKeyvalue(practitionerKeyValues)
) : (
<Alert description="User does not have a linked practitioner" type="info"></Alert>
<Alert description="User does not have a linked practitioner" type="warning"></Alert>
)}
{careTeamsIsLoading ? (
<Alert description="Fetching linked care teams" type="info"></Alert>
) : careTeams && careTeams.length > 0 ? (
renderObjectAsKeyvalue(careTeamKeyValues)
) : (
<Alert description="Practitioner is not assigned to a care team" type="info"></Alert>
<Alert description="Practitioner is not assigned to a care team" type="warning"></Alert>
)}
</Space>
);
Expand Down

0 comments on commit 1585013

Please sign in to comment.