|
|
@ -1129,7 +1129,13 @@ async function sendVideoData(newState, overrideChanges) {
|
|
|
|
globalPageState = PAGE_STATE.CONFIRMING;
|
|
|
|
globalPageState = PAGE_STATE.CONFIRMING;
|
|
|
|
const serverErrorNode = document.createTextNode(await submitResponse.text());
|
|
|
|
const serverErrorNode = document.createTextNode(await submitResponse.text());
|
|
|
|
const submitButton = document.createElement("button");
|
|
|
|
const submitButton = document.createElement("button");
|
|
|
|
|
|
|
|
if (newState === "UNEDITED") {
|
|
|
|
|
|
|
|
submitButton.innerText = "Save Draft Anyway";
|
|
|
|
|
|
|
|
} else if (newState === "MODIFIED") {
|
|
|
|
|
|
|
|
submitButton.innerText = "Submit Changes Anyway";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
submitButton.innerText = "Submit Anyway";
|
|
|
|
submitButton.innerText = "Submit Anyway";
|
|
|
|
|
|
|
|
}
|
|
|
|
submitButton.addEventListener("click", (_event) => {
|
|
|
|
submitButton.addEventListener("click", (_event) => {
|
|
|
|
sendVideoData(newState, true);
|
|
|
|
sendVideoData(newState, true);
|
|
|
|
});
|
|
|
|
});
|
|
|
|