mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Merge pull request #875 from vector-im/madlittlemods/event-data-attribute-on-announcement-view
Add `data-event-id` to `AnnouncementView` so it appears for state events in the timeline
This commit is contained in:
commit
dc13d1b283
@ -22,8 +22,11 @@ export class AnnouncementView extends TemplateView {
|
|||||||
super(vm);
|
super(vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
render(t) {
|
render(t, vm) {
|
||||||
return t.li({className: "AnnouncementView"}, t.div(vm => vm.announcement));
|
return t.li({
|
||||||
|
className: "AnnouncementView",
|
||||||
|
'data-event-id': vm.eventId
|
||||||
|
}, t.div(vm => vm.announcement));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is called by the parent ListView, which just has 1 listener for the whole list */
|
/* This is called by the parent ListView, which just has 1 listener for the whole list */
|
||||||
|
Loading…
Reference in New Issue
Block a user