Unchecked toogle-all if no instances are available #190
This commit is contained in:
parent
4765cebc7d
commit
df7b47a51a
|
@ -118,6 +118,7 @@ async function processDefaultCustomInstances(
|
||||||
}
|
}
|
||||||
for (const element of nameCheckListElement.getElementsByTagName('input'))
|
for (const element of nameCheckListElement.getElementsByTagName('input'))
|
||||||
element.checked = nameDefaultRedirects.includes(element.className)
|
element.checked = nameDefaultRedirects.includes(element.className)
|
||||||
|
if (nameDefaultRedirects.length == 0) isTrue = false;
|
||||||
nameProtocolElement.getElementsByClassName('toogle-all')[0].checked = isTrue;
|
nameProtocolElement.getElementsByClassName('toogle-all')[0].checked = isTrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue