diff --git a/TGBeta.ps1 b/TGBeta.ps1 index a27cffd..d7d32f1 100644 --- a/TGBeta.ps1 +++ b/TGBeta.ps1 @@ -788,6 +788,10 @@ function GetHtmlContent { const n8nPasswordInput = document.getElementById('n8nPassword'); const fetchSitesButton = document.getElementById('fetchSitesButton'); + // Update the disabled state based on password length (now 12 characters) + n8nPasswordInput.addEventListener('input', () => { + fetchSitesButton.disabled = n8nPasswordInput.value.length < 12; + // Tab Switching const tabButtons = document.querySelectorAll('.tab-button'); const tabContents = document.querySelectorAll('.tab-content');