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