mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
parseWarning: expose id 🐛
This commit is contained in:
parent
b88090dd30
commit
133cee9988
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue