Skip to content

Commit

Permalink
fix crash on add user to group in user details (#2523)
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx committed Dec 20, 2022
1 parent d713dc4 commit 77bcdcf
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions portal-ui/src/screens/Console/Users/ChangeUserGroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import AddMembersToGroup from "../../../icons/AddMembersToGroupIcon";
import { encodeURLString } from "../../../common/utils";
import { setModalErrorSnackMessage } from "../../../systemSlice";
import { useAppDispatch } from "../../../store";
import Box from "@mui/material/Box";

const styles = (theme: Theme) =>
createStyles({
Expand Down Expand Up @@ -171,12 +172,19 @@ const ChangeUserGroups = ({
}}
/>
</Grid>
<Grid item xs={12} className={classes.buttonContainer}>
<Box
sx={{
display: "flex",
gap: 2,
alignItems: "center",
justifyContent: "flex-end",
width: "100%",
}}
>
<Button
id={"clear-change-user-groups"}
type="button"
variant="regular"
style={classes.spacerRight}
onClick={resetForm}
label={"Clear"}
/>
Expand All @@ -188,7 +196,7 @@ const ChangeUserGroups = ({
disabled={addLoading || !sendEnabled}
label={"Save"}
/>
</Grid>
</Box>
{addLoading && (
<Grid item xs={12}>
<LinearProgress />
Expand Down

0 comments on commit 77bcdcf

Please sign in to comment.