editor: Make public checkbox "unlisted" instead, with negated meaning

less confusing
pull/300/head
Mike Lang 2 years ago committed by Mike Lang
parent b9c44375c3
commit ffae321d04

@ -206,8 +206,8 @@
</div> </div>
<div> <div>
<label for="advanced-submission-option-public">Make public (not unlisted)</label> <label for="advanced-submission-option-unlisted">Make unlisted</label>
<input type="checkbox" id="advanced-submission-option-public" /> <input type="checkbox" id="advanced-submission-option-unlisted" />
</div> </div>
<div> <div>

@ -385,8 +385,8 @@ async function initializeVideoInfo() {
modifiedAdvancedOptions = true; modifiedAdvancedOptions = true;
} }
const publicCheckbox = document.getElementById("advanced-submission-option-public"); const unlistedCheckbox = document.getElementById("advanced-submission-option-unlisted");
publicCheckbox.checked = videoInfo.public; unlistedCheckbox.checked = !videoInfo.public;
if (!videoInfo.public) { if (!videoInfo.public) {
modifiedAdvancedOptions = true; modifiedAdvancedOptions = true;
} }
@ -788,7 +788,7 @@ async function sendVideoData(newState, overrideChanges) {
const videoTitle = document.getElementById("video-info-title").value; const videoTitle = document.getElementById("video-info-title").value;
const videoTags = document.getElementById("video-info-tags").value.split(","); const videoTags = document.getElementById("video-info-tags").value.split(",");
const allowHoles = document.getElementById("advanced-submission-option-allow-holes").checked; const allowHoles = document.getElementById("advanced-submission-option-allow-holes").checked;
const isPublic = document.getElementById("advanced-submission-option-public").checked; const isPublic = !document.getElementById("advanced-submission-option-unlisted").checked;
const uploadLocation = document.getElementById( const uploadLocation = document.getElementById(
"advanced-submission-option-upload-location" "advanced-submission-option-upload-location"
).value; ).value;

Loading…
Cancel
Save