Spaces:
Sleeping
Sleeping
Nathan commited on
Commit ·
81c1665
1
Parent(s): 10e0463
UI: Unlocked Unlimited YouTube Slots for Admin users
Browse files309 unmodified lines310311312313314315316317318319309 unmodified linesdocument.getElementById('stat-views').innerText = totalViews.toLocaleString();document.getElementById('stat-subs').innerText = totalSubs.toLocaleString();if (channelsToShow.length >= (userPlan === 'ultra' ? 999 : 1)) {connectBtn.innerHTML = `Slot Occupied`;connectBtn.disabled = true;connectBtn.style.opacity = '0.5';}lucide.createIcons();}309 unmodified lines310311312313314315316317318319320321322323324325326327328329309 unmodified linesdocument.getElementById('stat-views').innerText = totalViews.toLocaleString();document.getElementById('stat-subs').innerText = totalSubs.toLocaleString();// --- Unlimited Slots for Admins ---const isAdmin = (userPlan === 'ultra'); // Existing plan check// Note: We will use the role from the global d variable in a better wayconst slotLimit = (userPlan === 'ultra' || document.getElementById('admin-btn').style.display === 'flex') ? 999 : 1;if (channelsToShow.length >= slotLimit) {connectBtn.innerHTML = `Slot Occupied`;connectBtn.disabled = true;connectBtn.style.opacity = '0.5';} else {connectBtn.innerHTML = `Connect Channel`;connectBtn.disabled = false;connectBtn.style.opacity = '1';}lucide.createIcons();}
dashboard/index.html+11-1