parseWarning: expose id 🐛

This commit is contained in:
Jannis R 2019-03-27 18:58:34 +01:00
parent b88090dd30
commit 133cee9988
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -28,9 +28,10 @@ const parseWarning = (profile, w, icons) => {
const type = icon && icon.res && typesByIcon[icon.res] || 'warning'
const res = {
id: w.hid || null,
type,
summary: brToNewline(w.head),
text: brToNewline(w.text),
summary: brToNewline(w.head), // todo: decode HTML entities
text: brToNewline(w.text), // todo: decode HTML entities
priority: w.prio,
category: w.cat || null // todo: parse to sth meaningful
}