Change wording of "submit anyway" button when saving a draft

pull/389/head
Mike Lang 7 months ago
parent f9ff537b84
commit cb144866a6

@ -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);
}); });

Loading…
Cancel
Save