Spaces:
Sleeping
Sleeping
Nathan commited on
Commit ·
7febce3
1
Parent(s): f8deb07
Fix: Added missing generateNow function to dashboard
Browse files567 unmodified lines568569570571572573567 unmodified linesreturn false;}async function connectYouTube() {const clientId = document.getElementById('setting-client-id').value;const clientSecret = document.getElementById('setting-client-secret').value;567 unmodified lines568569570571572573574575576577578579580581582583584585586587588589590591592593567 unmodified linesreturn false;}async function generateNow() {if (!confirm("🎬 This will start the AI Video Production immediately. Proceed?")) return;try {const res = await fetch('/api/generate', {method: 'POST',headers: { 'Authorization': `Bearer ${authToken}` }});if (res.ok) {alert("🚀 Production Engine Started! Check the Cloud Execution Logs for progress.");} else {const d = await res.json();alert("⚠️ Error: " + (d.error || "Could not start production"));}} catch (e) {alert("Connection error. Check your internet.");}}async function connectYouTube() {const clientId = document.getElementById('setting-client-id').value;const clientSecret = document.getElementById('setting-client-secret').value;
dashboard/index.html+20