feature/IO-3499-React-19: Bug Fixes / Checkpoint
This commit is contained in:
@@ -38,14 +38,14 @@ export default function ShopEmployeeAddVacation({ employee }) {
|
||||
});
|
||||
|
||||
if (result.errors) {
|
||||
notification["error"]({
|
||||
message: t("employees.errors.adding", {
|
||||
notification.error({
|
||||
title: t("employees.errors.adding", {
|
||||
message: JSON.stringify(result.errors)
|
||||
})
|
||||
});
|
||||
} else {
|
||||
notification["success"]({
|
||||
message: t("employees.successes.vacationadded")
|
||||
notification.success({
|
||||
title: t("employees.successes.vacationadded")
|
||||
});
|
||||
}
|
||||
form.resetFields();
|
||||
|
||||
@@ -84,13 +84,13 @@ export function ShopEmployeesFormComponent({ bodyshop }) {
|
||||
}
|
||||
})
|
||||
.then(() => {
|
||||
notification["success"]({
|
||||
message: t("employees.successes.save")
|
||||
notification.success({
|
||||
title: t("employees.successes.save")
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
notification["error"]({
|
||||
message: t("employees.errors.save", {
|
||||
notification.error({
|
||||
title: t("employees.errors.save", {
|
||||
message: JSON.stringify(error)
|
||||
})
|
||||
});
|
||||
@@ -105,8 +105,8 @@ export function ShopEmployeesFormComponent({ bodyshop }) {
|
||||
}).then((r) => {
|
||||
search.employeeId = r.data.insert_employees.returning[0].id;
|
||||
history({ search: queryString.stringify(search) });
|
||||
notification["success"]({
|
||||
message: t("employees.successes.save")
|
||||
notification.success({
|
||||
title: t("employees.successes.save")
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user