From ad6c79c854ba4d519ab7ebc29d79bce5b7409823 Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Thu, 14 Oct 2021 21:09:30 -0500 Subject: [PATCH] Remove TODO and give a better "you're logged out" message to user --- thrimbletrimmer/beta/edit.html | 1 - thrimbletrimmer/beta/scripts/edit.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/thrimbletrimmer/beta/edit.html b/thrimbletrimmer/beta/edit.html index eaf115b..015593f 100644 --- a/thrimbletrimmer/beta/edit.html +++ b/thrimbletrimmer/beta/edit.html @@ -203,7 +203,6 @@
-
diff --git a/thrimbletrimmer/beta/scripts/edit.js b/thrimbletrimmer/beta/scripts/edit.js index e343beb..3b00f4a 100644 --- a/thrimbletrimmer/beta/scripts/edit.js +++ b/thrimbletrimmer/beta/scripts/edit.js @@ -425,6 +425,8 @@ async function sendVideoData(edited, overrideChanges) { submissionResponseElem.innerHTML = ""; submissionResponseElem.appendChild(serverErrorNode); submissionResponseElem.appendChild(submitButton); + } else if (submitResponse.status === 401) { + submissionResponseElem.innerText = "Unauthorized. Did you remember to sign in?"; } else { submissionResponseElem.innerText = `${ submitResponse.statusText