Merge: - client: Display service name for blocked services
Merge in DNS/adguard-home from fix/2038 to master * commit '9e33bd52599c2039603d99f93db461cc6a6a23f4': - client: Display service name for blocked services
This commit is contained in:
commit
340052090c
|
@ -14,6 +14,7 @@ import IconTooltip from './IconTooltip';
|
||||||
|
|
||||||
const DomainCell = ({
|
const DomainCell = ({
|
||||||
answer_dnssec,
|
answer_dnssec,
|
||||||
|
service_name,
|
||||||
client_proto,
|
client_proto,
|
||||||
domain,
|
domain,
|
||||||
time,
|
time,
|
||||||
|
@ -49,6 +50,10 @@ const DomainCell = ({
|
||||||
protocol,
|
protocol,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (service_name) {
|
||||||
|
requestDetailsObj.check_service = service_name;
|
||||||
|
}
|
||||||
|
|
||||||
const sourceData = getSourceData(tracker);
|
const sourceData = getSourceData(tracker);
|
||||||
|
|
||||||
const knownTrackerDataObj = {
|
const knownTrackerDataObj = {
|
||||||
|
@ -98,7 +103,7 @@ const DomainCell = ({
|
||||||
xlinkHref='privacy' contentItemClass='key-colon' renderContent={renderContent}
|
xlinkHref='privacy' contentItemClass='key-colon' renderContent={renderContent}
|
||||||
place='bottom' />
|
place='bottom' />
|
||||||
<div className={valueClass}>
|
<div className={valueClass}>
|
||||||
<div className="text-truncate" title={domain}>{domain}</div>
|
<div className="text-truncate" title={domain}>{service_name || domain}</div>
|
||||||
{details && isDetailed
|
{details && isDetailed
|
||||||
&& <div className="detailed-info d-none d-sm-block text-truncate"
|
&& <div className="detailed-info d-none d-sm-block text-truncate"
|
||||||
title={details}>{details}</div>}
|
title={details}>{details}</div>}
|
||||||
|
@ -112,6 +117,7 @@ DomainCell.propTypes = {
|
||||||
domain: propTypes.string.isRequired,
|
domain: propTypes.string.isRequired,
|
||||||
time: propTypes.string.isRequired,
|
time: propTypes.string.isRequired,
|
||||||
type: propTypes.string.isRequired,
|
type: propTypes.string.isRequired,
|
||||||
|
service_name: propTypes.string,
|
||||||
tracker: propTypes.object,
|
tracker: propTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ export const normalizeLogs = (logs) => logs.map((log) => {
|
||||||
filterId,
|
filterId,
|
||||||
rule,
|
rule,
|
||||||
status,
|
status,
|
||||||
serviceName: service_name,
|
service_name,
|
||||||
originalAnswer: original_answer,
|
originalAnswer: original_answer,
|
||||||
originalResponse: processResponse(original_answer),
|
originalResponse: processResponse(original_answer),
|
||||||
tracker: getTrackerData(domain),
|
tracker: getTrackerData(domain),
|
||||||
|
|
Loading…
Reference in New Issue