mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-22 18:21:39 +01:00
Add data-event-id
to AnnouncementView
so it appears for state events in the timeline
Follow-up to https://github.com/vector-im/hydrogen-web/pull/690 Split off from https://github.com/vector-im/hydrogen-web/pull/653
This commit is contained in:
parent
5f9cfffa3b
commit
90ac16854b
@ -22,8 +22,11 @@ export class AnnouncementView extends TemplateView {
|
||||
super(vm);
|
||||
}
|
||||
|
||||
render(t) {
|
||||
return t.li({className: "AnnouncementView"}, t.div(vm => vm.announcement));
|
||||
render(t, vm) {
|
||||
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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user