]> source.dussan.org Git - rspamd.git/commitdiff
[FIX] upload.js - eslint 2720/head
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Sat, 19 Jan 2019 07:28:49 +0000 (08:28 +0100)
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Sat, 19 Jan 2019 07:28:49 +0000 (08:28 +0100)
interface/js/app/upload.js

index f77cb7e7868b8979421fcb2f0b34b69df2d017fb..d5d0768f180b0a22b0d2bf7b0258e9c734aa1295 100644 (file)
@@ -74,9 +74,9 @@ define(["jquery"],
                         rspamd.alertMessage("alert-success", "Data successfully scanned");
                         var action = "";
 
-                        if (json.action === "clean" || "no action") {
+                        if (json.action === "clean" || json.action === "no action") {
                             action = "label-success";
-                        } else if (json.action === "rewrite subject" || "add header" || "probable spam") {
+                        } else if (json.action === "rewrite subject" || json.action === "add header" || json.action === "probable spam") {
                             action = "label-warning";
                         } else if (json.action === "spam") {
                             action = "label-danger";