Skip to content

Commit 8e239ec

Browse files
authored
Modify status text if a reply was received for clarify (#3203)
2 parents 8f730a4 + 64c191f commit 8e239ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/js/queries.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ function parseQueryStatus(data) {
9999
case "FORWARDED":
100100
colorClass = "text-green";
101101
icon = "fa-solid fa-cloud-download-alt";
102-
fieldtext = "Forwarded to " + data.upstream;
102+
fieldtext =
103+
(data.reply.type !== "UNKNOWN" ? "Forwarded, reply from " : "Forwarded to ") +
104+
data.upstream;
103105
buttontext =
104106
'<button type="button" class="btn btn-default btn-sm text-red btn-blacklist"><i class="fa fa-ban"></i> Deny</button>';
105107
break;

0 commit comments

Comments
 (0)