diff options
author | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2019-01-19 08:28:49 +0100 |
---|---|---|
committer | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2019-01-19 08:28:49 +0100 |
commit | 110f02f4495859a9203415a4eda41d27e91e50f9 (patch) | |
tree | 5137450c0776cd014ed5f2d00170cd380a0e065e /interface | |
parent | ee587bdf28e581d6b998f334ebb38d408e6b7af1 (diff) | |
download | rspamd-110f02f4495859a9203415a4eda41d27e91e50f9.tar.gz rspamd-110f02f4495859a9203415a4eda41d27e91e50f9.zip |
[FIX] upload.js - eslint
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/upload.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index f77cb7e78..d5d0768f1 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -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"; |