mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 08:32:25 +00:00
screw up fix
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user