mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-01 21:50:29 +03:00
+ client: handle blocked services
This commit is contained in:
parent
3c684d1f85
commit
92cebd5b31
26 changed files with 803 additions and 126 deletions
client/src/helpers
|
@ -27,6 +27,7 @@ export const normalizeLogs = logs => logs.map((log) => {
|
|||
client,
|
||||
filterId,
|
||||
rule,
|
||||
service_name,
|
||||
} = log;
|
||||
const { host: domain, type } = question;
|
||||
const responsesArray = response ? response.map((response) => {
|
||||
|
@ -42,6 +43,7 @@ export const normalizeLogs = logs => logs.map((log) => {
|
|||
client,
|
||||
filterId,
|
||||
rule,
|
||||
serviceName: service_name,
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -225,3 +227,7 @@ export const sortClients = (clients) => {
|
|||
|
||||
return clients.sort(compare);
|
||||
};
|
||||
|
||||
export const toggleAllServices = (services, change, isSelected) => {
|
||||
services.forEach(service => change(`blocked_services.${service.id}`, isSelected));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue