]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Show pass-through module in History 4798/head
authormoisseev <moiseev@mezonplus.ru>
Sun, 28 Jan 2024 14:32:20 +0000 (17:32 +0300)
committermoisseev <moiseev@mezonplus.ru>
Sun, 28 Jan 2024 14:32:20 +0000 (17:32 +0300)
interface/js/app/libft.js

index c69f74d2ba56042945b59d8f4cd669c50c7e8fc0..14ef458f6b8d34d215879b3c8015f386f5496617 100644 (file)
@@ -111,8 +111,10 @@ define(["jquery", "app/common", "footable"],
                 style: {minwidth: 82}
             }, {
                 name: "passthrough_module",
-                title: '<div title="The module that has set the pre-result">Pass-through module</div>',
-                breakpoints: "xs sm md"
+                title: '<div title="The module that has set the pre-result"><nobr>Pass-through</nobr> module</div>',
+                breakpoints: "xs",
+                style: {minWidth: 98, maxWidth: 98},
+                sortValue: (val) => ((typeof val === "undefined") ? "" : val)
             }, {
                 name: "score",
                 title: "Score",
@@ -169,7 +171,7 @@ define(["jquery", "app/common", "footable"],
             }].filter((col) => {
                 switch (table) {
                     case "history":
-                        return (col.name !== "passthrough_module");
+                        return true;
                     case "scan":
                         return ["ip", "sender_mime", "rcpt_mime_short", "rcpt_mime", "subject", "size", "user"]
                             .every((name) => col.name !== name);