Support for refreshing customizer on same preset.

This commit is contained in:
hackademix 2022-02-14 18:57:46 +01:00
parent 10f18bea3e
commit e0f8856c7f
1 changed files with 5 additions and 1 deletions

View File

@ -576,11 +576,15 @@ var UI = (() => {
}
customize(perms, preset, row) {
let customizer = this.rowTemplate._customizer;
if (!preset) {
preset = customizer._preset;
delete customizer._preset;
}
debug("Customize preset %s (%o) - Dirty: %s", preset && preset.value, perms, this.dirty);
for(let r of this.table.querySelectorAll("tr.customizing")) {
r.classList.toggle("customizing", false);
}
let customizer = this.rowTemplate._customizer;
customizer.classList.toggle("closed", true);
if (!(perms && row && preset &&