Spaces:
Sleeping
Sleeping
Nathan commited on
Commit ·
daa009b
1
Parent(s): 4fc4e21
UI: Restored Multi-Channel Visibility and status badges
Browse files283 unmodified lines284285286287288289290291292293294283 unmodified linesconst list = document.getElementById('channel-list');const connectBtn = document.getElementById('connect-btn');list.innerHTML = '';if (yt.connected && yt.channels) {yt.channels.forEach(c => {list.innerHTML += `<div style="background:rgba(16, 185, 129, 0.05); color:var(--success); padding:15px; border-radius:18px; border:1px solid rgba(16, 185, 129, 0.2); font-weight:800; margin-bottom:10px; font-size:0.85rem; display:flex; align-items:center; gap:10px;"><i data-lucide="check-circle" style="width:16px;"></i> ${c.channel_name}</div>`;});if (yt.channels.length >= (userPlan === 'ultra' ? 999 : 1)) {connectBtn.innerHTML = `Slot Occupied`;connectBtn.disabled = true;connectBtn.style.opacity = '0.5';283 unmodified lines284285286287288289290291292293294295296297298299300301302283 unmodified linesconst list = document.getElementById('channel-list');const connectBtn = document.getElementById('connect-btn');list.innerHTML = '';const channelsToShow = yt.channels || [];if (channelsToShow.length > 0) {channelsToShow.forEach(c => {const isLive = c.connected || c.channel_id;list.innerHTML += `<div style="background:rgba(16, 185, 129, 0.05); color:${isLive ? 'var(--success)' : 'var(--text-dim)'}; padding:15px; border-radius:18px; border:1px solid ${isLive ? 'rgba(16, 185, 129, 0.2)' : 'var(--glass-border)'}; font-weight:800; margin-bottom:10px; font-size:0.85rem; display:flex; align-items:center; gap:10px;"><i data-lucide="${isLive ? 'check-circle' : 'alert-circle'}" style="width:16px;"></i>${c.channel_name || 'Pending Channel...'}${isLive ? '' : '<span style="font-size:0.6rem; background:rgba(255,255,255,0.1); padding:2px 6px; border-radius:5px; margin-left:auto;">LINKED</span>'}</div>`;});if (channelsToShow.length >= (userPlan === 'ultra' ? 999 : 1)) {connectBtn.innerHTML = `Slot Occupied`;connectBtn.disabled = true;connectBtn.style.opacity = '0.5';
dashboard/index.html+12-4