Compare commits
No commits in common. "f3ac9f8684dd890be70612b1fe4a0efb27c4974a" and "b448bcd43152397625527edc975c6d120b2002e7" have entirely different histories.
f3ac9f8684
...
b448bcd431
@ -772,7 +772,6 @@ class BackupPage {
|
|||||||
Export Repository Passwords
|
Export Repository Passwords
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="config-divider"></div>
|
|
||||||
<div id="config-section" class="backup-embedded-config"></div>
|
<div id="config-section" class="backup-embedded-config"></div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -1281,17 +1280,18 @@ class BackupPage {
|
|||||||
KEEP_YEARLY: loc.keep_yearly
|
KEEP_YEARLY: loc.keep_yearly
|
||||||
};
|
};
|
||||||
|
|
||||||
// Single .config-fields grid, exactly like /config's renderer — the grid
|
|
||||||
// (repeat(3, 1fr)) handles the row layout itself, and hidden fields
|
|
||||||
// (PATH_MODE/SSH/etc.) drop out cleanly without leaving column gaps.
|
|
||||||
let html = '<div class="config-fields">';
|
let html = '<div class="config-fields">';
|
||||||
|
let inBlock = 0;
|
||||||
for (const suffix of suffixes) {
|
for (const suffix of suffixes) {
|
||||||
const def = BACKUP_LOC_FIELD_DEFS[suffix];
|
const def = BACKUP_LOC_FIELD_DEFS[suffix];
|
||||||
if (!def) continue;
|
if (!def) continue;
|
||||||
const key = `CFG_BACKUP_LOC_${idx}_${suffix}`;
|
const key = `CFG_BACKUP_LOC_${idx}_${suffix}`;
|
||||||
const value = (locValueLookup[suffix] ?? '').toString();
|
const value = (locValueLookup[suffix] ?? '').toString();
|
||||||
const fieldId = `config-${key}`;
|
const fieldId = `config-${key}`;
|
||||||
|
// Three-up grouping mirrors /config's row layout.
|
||||||
|
if (inBlock > 0 && inBlock % 3 === 0) html += '</div><div class="config-fields">';
|
||||||
html += ConfigShared.generateField(fieldId, key, value, def.title, def.description, {}, {});
|
html += ConfigShared.generateField(fieldId, key, value, def.title, def.description, {}, {});
|
||||||
|
inBlock++;
|
||||||
}
|
}
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
return html;
|
return html;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user