chore: Improve toasts
This commit is contained in:
@ -67,10 +67,11 @@ class AddGroupsToCollection extends React.Component<Props> {
|
||||
this.props.ui.showToast(
|
||||
t("{{ groupName }} was added to the collection", {
|
||||
groupName: group.name,
|
||||
})
|
||||
}),
|
||||
{ type: "success" }
|
||||
);
|
||||
} catch (err) {
|
||||
this.props.ui.showToast(t("Could not add user"));
|
||||
this.props.ui.showToast(t("Could not add user"), { type: "error" });
|
||||
console.error(err);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user