Plugin manager "select all" checkbox doesn't change state on click
@@ -10,8 +10,10 @@ rowSelectionControllers.forEach(headerCheckbox => {
if (tableCheckboxes.length === 0) {
headerCheckbox.disabled = true;
+ if (moreOptionsButton) {
moreOptionsButton.disabled = true;
}
+ }
const allCheckboxesSelected = () => {
return tableCheckboxes.length === [...tableCheckboxes].filter(e => e.checked).length
@@ -46,7 +48,7 @@ rowSelectionControllers.forEach(headerCheckbox => {
function updateIcon() {
headerCheckbox.classList.remove("jenkins-table__checkbox--all")
headerCheckbox.classList.remove("jenkins-table__checkbox--indeterminate")
- moreOptionsDropdown.classList.remove("jenkins-table__checkbox-dropdown--visible")
+ moreOptionsDropdown?.classList.remove("jenkins-table__checkbox-dropdown--visible")
if (allCheckboxesSelected()) {
headerCheckbox.classList.add("jenkins-table__checkbox--all")
