0
0

🩹 unite similar help buttons

This commit is contained in:
thetek 2021-05-07 14:22:19 +02:00
parent 40aba5e993
commit 49fd26093c

View File

@ -61,6 +61,7 @@ function dnswatch_search() {
if (response['data']['found']) { // only if reference confirms
table += '<table><tr></tr>\n'; // spacer
//// search rows
let causes = [];
response['data']['search'].forEach(i => {
table += gen_tablerow({
@ -71,9 +72,11 @@ function dnswatch_search() {
dns_address: i['address'],
desc_color: i['cause'] !== null ? 'blocked': '',
desc_text: i['cause'] == 'cuii' ? 'reference' : '',
show_help: i['cause'] !== null
show_help: i['cause'] !== null && !causes.includes(i['cause'])
})
if (i['cause'] !== null) causes.push(i['cause'])
});
}
table += '</table>';