|
|
@ -540,7 +540,7 @@ async function sendVideoData(edited, overrideChanges) {
|
|
|
|
editData.token = googleUser.getAuthResponse().id_token;
|
|
|
|
editData.token = googleUser.getAuthResponse().id_token;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (overrideChanges) {
|
|
|
|
if (overrideChanges) {
|
|
|
|
editData.overrideChanges = true;
|
|
|
|
editData.override_changes = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const submitResponse = await fetch(`/thrimshim/${videoInfo.id}`, {
|
|
|
|
const submitResponse = await fetch(`/thrimshim/${videoInfo.id}`, {
|
|
|
@ -564,7 +564,7 @@ async function sendVideoData(edited, overrideChanges) {
|
|
|
|
if (submitResponse.status === 409) {
|
|
|
|
if (submitResponse.status === 409) {
|
|
|
|
const serverErrorNode = document.createTextNode(await submitResponse.text());
|
|
|
|
const serverErrorNode = document.createTextNode(await submitResponse.text());
|
|
|
|
const submitButton = document.createElement("button");
|
|
|
|
const submitButton = document.createElement("button");
|
|
|
|
submitButton.text = "Submit Anyway";
|
|
|
|
submitButton.innerText = "Submit Anyway";
|
|
|
|
submitButton.addEventListener("click", (_event) => {
|
|
|
|
submitButton.addEventListener("click", (_event) => {
|
|
|
|
sendVideoData(edited, true);
|
|
|
|
sendVideoData(edited, true);
|
|
|
|
});
|
|
|
|
});
|
|
|
|