[Rspamd, Web] Add rewrite subject to known soft quarantine actions

This commit is contained in:
andryyy
2020-11-13 21:26:42 +01:00
parent 477e1ff464
commit 5d9c40b8b4
3 changed files with 10 additions and 4 deletions

View File

@@ -47,8 +47,10 @@ jQuery(function($){
if (typeof data.score !== 'undefined' && typeof data.action !== 'undefined') {
if (data.action === "add header") {
$('#qid_detail_score').append('<span class="label-rspamd-action label label-warning"><b>' + data.score + '</b> - ' + lang.junk_folder + '</span>');
} else {
} else if (data.action === "reject") {
$('#qid_detail_score').append('<span class="label-rspamd-action label label-danger"><b>' + data.score + '</b> - ' + lang.rejected + '</span>');
} else if (data.action === "rewrite subject") {
$('#qid_detail_score').append('<span class="label-rspamd-action label label-warning"><b>' + data.score + '</b> - ' + lang.rewrite_subject + '</span>');
}
}
if (typeof data.recipients !== 'undefined') {
@@ -66,4 +68,4 @@ jQuery(function($){
}
}
});
});
});