@@ -130,7 +130,7 @@ export const AdminUsers = () => {
adminUser.email
);
alert('Successfully removed');
- window.location.reload();
+ fetchAdminUsers();
}}
>
Remove
diff --git a/media_commons_booking_app/src/client/admin-page/components/Ban.tsx b/media_commons_booking_app/src/client/admin-page/components/Ban.tsx
index cbb8dffa..0021cf14 100644
--- a/media_commons_booking_app/src/client/admin-page/components/Ban.tsx
+++ b/media_commons_booking_app/src/client/admin-page/components/Ban.tsx
@@ -58,7 +58,7 @@ export const Ban = () => {
serverFunctions.appendRow(BAN_SHEET_NAME, [email, new Date().toString()]);
alert('User has been registered successfully!');
- window.location.reload();
+ fetchBans();
};
return (
@@ -127,7 +127,7 @@ export const Ban = () => {
ban.email
);
alert('Successfully removed');
- window.location.reload();
+ fetchBans();
}}
>
Remove
diff --git a/media_commons_booking_app/src/client/admin-page/components/Liaisons.tsx b/media_commons_booking_app/src/client/admin-page/components/Liaisons.tsx
index 70074a3f..9bba9b44 100644
--- a/media_commons_booking_app/src/client/admin-page/components/Liaisons.tsx
+++ b/media_commons_booking_app/src/client/admin-page/components/Liaisons.tsx
@@ -71,7 +71,7 @@ export const Liaisons = () => {
]);
alert('User has been registered successfully!');
- window.location.reload();
+ fetchLiaisonUsers();
};
return (
@@ -166,7 +166,7 @@ export const Liaisons = () => {
liaison.email
);
alert('Successfully removed');
- window.location.reload();
+ fetchLiaisonUsers();
}}
>
Remove
diff --git a/media_commons_booking_app/src/client/admin-page/components/SafetyTraining.tsx b/media_commons_booking_app/src/client/admin-page/components/SafetyTraining.tsx
index 02f08279..53765d32 100644
--- a/media_commons_booking_app/src/client/admin-page/components/SafetyTraining.tsx
+++ b/media_commons_booking_app/src/client/admin-page/components/SafetyTraining.tsx
@@ -62,7 +62,7 @@ export const SafetyTraining = () => {
]);
alert('User has been registered successfully!');
- window.location.reload();
+ fetchSafetyTrainings();
};
return (
@@ -131,7 +131,7 @@ export const SafetyTraining = () => {
safetyTraining.email
);
alert('Successfully removed');
- window.location.reload();
+ fetchSafetyTrainings();
}}
>
Remove