feat(companysetting): add writeonly column and mask values for GUI

This commit is contained in:
seb
2026-09-15 08:48:24 +02:00
parent 2e16a22c99
commit e56f725bd9
10 changed files with 155 additions and 107 deletions

View File

@@ -1,8 +1,10 @@
function shapeSetting(row) {
function shapeSetting(row, { exposeValue = false } = {}) {
const writeonly = Boolean(row.writeonly);
return {
key: row.key,
value: row.value,
value: writeonly && !exposeValue ? '***' : row.value,
frontend: Boolean(row.frontend),
writeonly,
};
}