From b2cd6685bba7b7dfa37366b35b1ebad521607625 Mon Sep 17 00:00:00 2001 From: MasterGunner Date: Mon, 7 Oct 2019 15:17:45 -0300 Subject: [PATCH] Draft Button and Dashboard Columns --- thrimbletrimmer/dashboard.html | 7 +++++++ thrimbletrimmer/index.html | 3 ++- thrimbletrimmer/scripts/IO.js | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/thrimbletrimmer/dashboard.html b/thrimbletrimmer/dashboard.html index 1aeea06..5abc5f3 100644 --- a/thrimbletrimmer/dashboard.html +++ b/thrimbletrimmer/dashboard.html @@ -135,6 +135,8 @@ State Edit Link + Edit Time + Upload Time @@ -218,6 +220,9 @@ function populateTable (events) { events.forEach(event => { + if(!event.description) { //If a row doesn't have a description, it's probably orphaned from the spreadsheet, and does not need to be displayed. + return; + } let row = document.createElement("TR"); row.innerHTML = ` ${event.event_start} @@ -227,6 +232,8 @@ ${event.state} Edit ${event.video_link ? ""+event.video_link+"":""} + ${event.edit_time} + ${event.upload_time} `; document.getElementById('QueueTable').appendChild(row); }); diff --git a/thrimbletrimmer/index.html b/thrimbletrimmer/index.html index 154c682..7d85657 100644 --- a/thrimbletrimmer/index.html +++ b/thrimbletrimmer/index.html @@ -86,7 +86,8 @@ Description:
- + + Go To Dashboard | Manual Link | diff --git a/thrimbletrimmer/scripts/IO.js b/thrimbletrimmer/scripts/IO.js index 456959d..4c99422 100644 --- a/thrimbletrimmer/scripts/IO.js +++ b/thrimbletrimmer/scripts/IO.js @@ -70,7 +70,7 @@ loadPlaylist = function(startTrim, endTrim) { }); }; -thrimbletrimmerSubmit = function() { +thrimbletrimmerSubmit = function(state) { document.getElementById('SubmitButton').disabled = true; if(player.trimmingControls().options.startTrim >= player.trimmingControls().options.endTrim) { alert("End Time must be greater than Start Time"); @@ -88,7 +88,7 @@ thrimbletrimmerSubmit = function() { video_channel:document.getElementById("StreamName").value, video_quality:document.getElementById('qualityLevel').options[document.getElementById('qualityLevel').options.selectedIndex].value, uploader_whitelist:(document.getElementById('uploaderWhitelist').value ? document.getElementById('uploaderWhitelist').value.split(','):null), - state:"EDITED", + state:state, token: user.getAuthResponse().id_token }; // state_columns = ['state', 'uploader', 'error', 'video_link']