mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Object.entries(d).forEach() to forEachObjectEntry()
This commit is contained in:
parent
a47397ef09
commit
9f0b872839
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import ko from 'ko';
|
import ko from 'ko';
|
||||||
|
|
||||||
import Remote from 'Remote/Admin/Fetch';
|
import Remote from 'Remote/Admin/Fetch';
|
||||||
|
import { forEachObjectEntry } from 'Common/Utils';
|
||||||
|
|
||||||
export class ConfigAdminSettings /*extends AbstractViewSettings*/ {
|
export class ConfigAdminSettings /*extends AbstractViewSettings*/ {
|
||||||
|
|
||||||
|
|
@ -20,12 +21,12 @@ export class ConfigAdminSettings /*extends AbstractViewSettings*/ {
|
||||||
}
|
}
|
||||||
return pass ? 'password' : 'text';
|
return pass ? 'password' : 'text';
|
||||||
};
|
};
|
||||||
Object.entries(data.Result).forEach(([key, items]) => {
|
forEachObjectEntry(data.Result, (key, items) => {
|
||||||
const section = {
|
const section = {
|
||||||
name: key,
|
name: key,
|
||||||
items: []
|
items: []
|
||||||
};
|
};
|
||||||
Object.entries(items).forEach(([skey, item]) => {
|
forEachObjectEntry(items, (skey, item) => {
|
||||||
section.items.push({
|
section.items.push({
|
||||||
key: `config[${key}][${skey}]`,
|
key: `config[${key}][${skey}]`,
|
||||||
name: skey,
|
name: skey,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue