Remove alert name column, improve description

This commit is contained in:
Alfredo Cardigliano 2021-05-05 14:34:03 +02:00
parent ddc3c3de6b
commit c7fa2a458d
8 changed files with 34 additions and 32 deletions

View file

@ -949,6 +949,10 @@ function alert_utils.formatAlertMessage(ifid, alert, alert_json, skip_live_data)
end
end
if isEmptyString(msg) then
msg = alert_consts.alertTypeLabel(tonumber(alert.alert_id), true --[[ no_html --]], alert.entity_id)
end
return(msg or "")
end
@ -971,6 +975,10 @@ function alert_utils.formatFlowAlertMessage(ifid, alert, alert_json, skip_live_d
msg = description(ifid, alert, msg)
end
if isEmptyString(msg) then
msg = alert_consts.alertTypeLabel(tonumber(alert.alert_id), true --[[ no_html --]], alert_entities.flow.entity_id)
end
return msg or ""
end