fix: reset pattern form when switching between include/exclude patterns (#417)
Some checks failed
CI / test (macos-latest, 3.10) (push) Has been cancelled
CI / test (macos-latest, 3.11) (push) Has been cancelled
CI / test (macos-latest, 3.12) (push) Has been cancelled
CI / test (macos-latest, 3.13) (push) Has been cancelled
CI / test (macos-latest, 3.8) (push) Has been cancelled
CI / test (macos-latest, 3.9) (push) Has been cancelled
CI / test (true, ubuntu-latest, 3.13) (push) Has been cancelled
CI / test (ubuntu-latest, 3.10) (push) Has been cancelled
CI / test (ubuntu-latest, 3.11) (push) Has been cancelled
CI / test (ubuntu-latest, 3.12) (push) Has been cancelled
CI / test (ubuntu-latest, 3.8) (push) Has been cancelled
CI / test (ubuntu-latest, 3.9) (push) Has been cancelled
CI / test (windows-latest, 3.10) (push) Has been cancelled
CI / test (windows-latest, 3.11) (push) Has been cancelled
CI / test (windows-latest, 3.12) (push) Has been cancelled
CI / test (windows-latest, 3.13) (push) Has been cancelled
CI / test (windows-latest, 3.8) (push) Has been cancelled
CI / test (windows-latest, 3.9) (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Build & Push Container / docker-build (push) Has been cancelled
release-please / release (push) Has been cancelled
OSSF Scorecard / Scorecard analysis (push) Has been cancelled

Co-authored-by: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com>
This commit is contained in:
Zarial 2025-07-24 11:01:49 +02:00 committed by GitHub
parent 5799998bbb
commit 7085e138a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,9 +8,16 @@ function changePattern() {
// Skip the first tree line element
treeLineElements.slice(2).forEach((element) => {
element.classList.toggle('line-through');
element.classList.toggle('text-gray-500');
element.classList.remove('line-through');
element.classList.remove('text-gray-500');
});
// Reset the pattern input field
const patternInput = document.getElementById('pattern');
if (patternInput) {
patternInput.value = '';
}
}
// Show/hide the Personal-Access-Token section when the "Private repository" checkbox is toggled.