screw up fix

This commit is contained in:
MathMan05 committed 2026-07-17 19:50:47 -05:00
1 parent 128b6f92c4
commit 1af75902f7
1 file changed
+2 -2
+2 -2
View File
@@ -203,7 +203,7 @@ class PermissionToggle implements OptionsElement<number> {
div.append(no);
if (state === 0) {
cur = no;
on.classList.add("selected");
no.classList.add("selected");
}
no.onclick = (_) => {
this.permissions.setPermission(this.rolejson.name, 0);
@@ -217,7 +217,7 @@ class PermissionToggle implements OptionsElement<number> {
off.classList.add("triOpt");
if (state === -1) {
cur = off;
on.classList.add("selected");
off.classList.add("selected");
}
off.onclick = (_) => {
this.permissions.setPermission(this.rolejson.name, -1);