refresh UI on close
This commit is contained in:
@ -110,14 +110,12 @@ export default function MySchedulePage({ assignments }) {
|
|||||||
}).then(response => {
|
}).then(response => {
|
||||||
console.log("response", response);
|
console.log("response", response);
|
||||||
//toast success and confirm the change
|
//toast success and confirm the change
|
||||||
|
// refresh the page after toast is closed
|
||||||
toast.success("Промяната е записана!", {
|
toast.success("Промяната е записана!", {
|
||||||
position: "top-right",
|
onClose: () => {
|
||||||
autoClose: 5000,
|
window.location.reload();
|
||||||
hideProgressBar: false,
|
|
||||||
closeOnClick: true,
|
}
|
||||||
pauseOnHover: true,
|
|
||||||
draggable: true,
|
|
||||||
progress: undefined,
|
|
||||||
});
|
});
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log("error", error);
|
console.log("error", error);
|
||||||
|
Reference in New Issue
Block a user