Remove TODO and give a better "you're logged out" message to user

pull/235/head
ElementalAlchemist 3 years ago committed by Mike Lang
parent 287d82feee
commit ad6c79c854

@ -203,7 +203,6 @@
</div> </div>
<div id="google-authentication"> <div id="google-authentication">
<!-- TODO: Test with authentication on and ensure failed video submissions for authentication show the correct error message -->
<div id="google-auth-sign-in" class="g-signin2" data-onsuccess="googleOnSignIn"></div> <div id="google-auth-sign-in" class="g-signin2" data-onsuccess="googleOnSignIn"></div>
<a href="#" id="google-auth-sign-out" class="hidden">Sign Out of Google Account</a> <a href="#" id="google-auth-sign-out" class="hidden">Sign Out of Google Account</a>
</div> </div>

@ -425,6 +425,8 @@ async function sendVideoData(edited, overrideChanges) {
submissionResponseElem.innerHTML = ""; submissionResponseElem.innerHTML = "";
submissionResponseElem.appendChild(serverErrorNode); submissionResponseElem.appendChild(serverErrorNode);
submissionResponseElem.appendChild(submitButton); submissionResponseElem.appendChild(submitButton);
} else if (submitResponse.status === 401) {
submissionResponseElem.innerText = "Unauthorized. Did you remember to sign in?";
} else { } else {
submissionResponseElem.innerText = `${ submissionResponseElem.innerText = `${
submitResponse.statusText submitResponse.statusText

Loading…
Cancel
Save