Browse Source

[Minor] Hide colon if status text is empty

tags/1.8.0
Alexander Moisseev 5 years ago
parent
commit
43b165ba84
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      interface/js/app/rspamd.js

+ 2
- 1
interface/js/app/rspamd.js View File

@@ -208,7 +208,8 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
neighbours_status[ind].checked = true;
function errorMessage() {
alertMessage("alert-error", neighbours_status[ind].name + " > " +
((o.errorMessage) ? o.errorMessage : "Request failed") + ": " + errorThrown);
(o.errorMessage ? o.errorMessage : "Request failed") +
(errorThrown ? (": " + errorThrown) : ""));
}
if (o.error) {
o.error(neighbours_status[ind],

Loading…
Cancel
Save