Init the CUSTOM preset not just with the capabilities, but also with the "temporary" status of the previously selected one.
This commit is contained in:
parent
6ffe07f8f6
commit
ce5d46ead2
|
@ -425,7 +425,8 @@ var UI = (() => {
|
|||
if (isTemp) {
|
||||
row.perms.temp = target.checked;
|
||||
} else {
|
||||
let temp = preset.parentNode.querySelector("input.temp").checked;
|
||||
let temp = row.perms.temp;
|
||||
tempToggle.checked = temp;
|
||||
let perms = row._customPerms ||
|
||||
(row._customPerms = new Permissions(new Set(row.perms.capabilities), temp));
|
||||
row.perms = perms;
|
||||
|
|
Loading…
Reference in New Issue