[JENKINS-71698] Only disable plugin manager button if none are selected (#8293)

This commit is contained in:
Tim Jacomb authored and GitHub committed 2023-07-26 20:14:01 +01:00
1 parent 3306d5653f
commit b3342f845c
1 file changed
+4 -2
+4 -2
View File
@@ -92,8 +92,10 @@ function updateInstallButtonState() {
const installAfterRestartButton = document.querySelector(
"#button-install-after-restart"
);
installButton.disabled = true;
installAfterRestartButton.disabled = true;
if (!anyCheckboxesSelected()) {
installButton.disabled = true;
installAfterRestartButton.disabled = true;
}
const checkboxes = document.querySelectorAll("input[type='checkbox']");
checkboxes.forEach((checkbox) => {
checkbox.addEventListener("click", () => {