mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08: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 Remote from 'Remote/Admin/Fetch';
|
||||
import { forEachObjectEntry } from 'Common/Utils';
|
||||
|
||||
export class ConfigAdminSettings /*extends AbstractViewSettings*/ {
|
||||
|
||||
|
@ -20,12 +21,12 @@ export class ConfigAdminSettings /*extends AbstractViewSettings*/ {
|
|||
}
|
||||
return pass ? 'password' : 'text';
|
||||
};
|
||||
Object.entries(data.Result).forEach(([key, items]) => {
|
||||
forEachObjectEntry(data.Result, (key, items) => {
|
||||
const section = {
|
||||
name: key,
|
||||
items: []
|
||||
};
|
||||
Object.entries(items).forEach(([skey, item]) => {
|
||||
forEachObjectEntry(items, (skey, item) => {
|
||||
section.items.push({
|
||||
key: `config[${key}][${skey}]`,
|
||||
name: skey,
|
||||
|
|
Loading…
Reference in a new issue