mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-01 05:31:38 +03:00
Add DNS cache setting UI
This commit is contained in:
parent
a5c0381c46
commit
2d5287fcf3
7 changed files with 187 additions and 5 deletions
client/src/helpers
|
@ -562,3 +562,15 @@ export const getIpMatchListStatus = (ip, list) => {
|
|||
return IP_MATCH_LIST_STATUS.NOT_FOUND;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @param values {object}
|
||||
* @returns {object}
|
||||
*/
|
||||
export const selectCompletedFields = (values) => Object.entries(values)
|
||||
.reduce((acc, [key, value]) => {
|
||||
if (value || value === 0) {
|
||||
acc[key] = value;
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue