Merge pull request #637 from eaglesemanation/fix/unassign_user
Fix/unassign user
This commit is contained in:
commit
df82342022
3 changed files with 19 additions and 16 deletions
|
@ -25,6 +25,7 @@ All notable, unreleased changes to this project will be documented in this file.
|
|||
- Fix updating product that has no variants - #649 by @dominik-zeglen
|
||||
- Update checkbox design - #651 by @dominik-zeglen
|
||||
- Add warehouse choice - #646 by @dominik-zeglen
|
||||
- Fix user management modal actions - #637 by @eaglesemanation
|
||||
|
||||
## 2.10.1
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ interface ActionDialogProps extends DialogProps {
|
|||
confirmButtonState: ConfirmButtonTransitionState;
|
||||
maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | false;
|
||||
title: string;
|
||||
variant?: "default" | "delete";
|
||||
variant?: "default" | "delete" | "info";
|
||||
onConfirm();
|
||||
}
|
||||
|
||||
|
@ -61,20 +61,22 @@ const ActionDialog: React.FC<ActionDialogProps> = props => {
|
|||
<Button onClick={onClose}>
|
||||
<FormattedMessage {...buttonMessages.back} />
|
||||
</Button>
|
||||
<ConfirmButton
|
||||
transitionState={confirmButtonState}
|
||||
color="primary"
|
||||
variant="contained"
|
||||
onClick={onConfirm}
|
||||
className={classNames({
|
||||
[classes.deleteButton]: variant === "delete"
|
||||
})}
|
||||
>
|
||||
{confirmButtonLabel ||
|
||||
(variant === "delete"
|
||||
? intl.formatMessage(buttonMessages.delete)
|
||||
: intl.formatMessage(buttonMessages.confirm))}
|
||||
</ConfirmButton>
|
||||
{variant !== "info" && (
|
||||
<ConfirmButton
|
||||
transitionState={confirmButtonState}
|
||||
color="primary"
|
||||
variant="contained"
|
||||
onClick={onConfirm}
|
||||
className={classNames({
|
||||
[classes.deleteButton]: variant === "delete"
|
||||
})}
|
||||
>
|
||||
{confirmButtonLabel ||
|
||||
(variant === "delete"
|
||||
? intl.formatMessage(buttonMessages.delete)
|
||||
: intl.formatMessage(buttonMessages.confirm))}
|
||||
</ConfirmButton>
|
||||
)}
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
);
|
||||
|
|
|
@ -29,7 +29,7 @@ const MembersErrorDialog: React.FC<MembersErrorDialogProps> = ({
|
|||
defaultMessage: "Unassign users",
|
||||
description: "dialog title"
|
||||
})}
|
||||
variant="default"
|
||||
variant="info"
|
||||
>
|
||||
<DialogContentText>
|
||||
<FormattedMessage
|
||||
|
|
Loading…
Reference in a new issue