Redirect user to requests page after successful media request submission
js->ts
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -994,6 +994,10 @@ export default function MediaRequestForm() {
|
||||
|
||||
const data = await response.json();
|
||||
toast.success(`Request submitted! (${allSelectedIds.length} tracks)`);
|
||||
// Send the user to the requests page to monitor progress
|
||||
if (typeof window !== "undefined") {
|
||||
window.location.href = "/TRip/requests";
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
toast.error("Failed to submit request.");
|
||||
|
||||
Reference in New Issue
Block a user