# -*- coding: utf-8 -*- """YouTube manage page: drop global busy disable.""" from pathlib import Path import re path = Path(r"c:\Users\admin\Desktop\douyinWEB\frontend\src\app\youtube\page.tsx") text = path.read_text(encoding="utf-8") # Keep busy for optional spinner but stop disabling whole UI text2 = text.replace("disabled={busy}", "disabled={false}") # cleaner: remove disabled={busy} text2 = re.sub(r"\s*disabled=\{busy\}", "", text) # Also don't set busy during loadManage if it locks - check # Remove setBusy around soft refreshes only — keep for create channel if needed # Minimal: just remove disabled={busy} path.write_text(text2, encoding="utf-8") print("disabled busy left", text2.count("disabled={busy}")) print("setBusy left", text2.count("setBusy")) PY