event-editor: Extract attendee summary row into a separate widget
Make the summary row reusable and filterable based on the attendee type. This gives us the possibility to have separate summaries for people/groups and resources/rooms. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/671>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template $GcalAttendeeSummaryRow: Adw.ActionRow {
|
||||
visible: bind template.filtered-list as <Gtk.FilterListModel>.n-items;
|
||||
activatable-widget: open_details;
|
||||
|
||||
styles [
|
||||
"property",
|
||||
]
|
||||
|
||||
[suffix]
|
||||
Label {
|
||||
valign: center;
|
||||
label: bind template.filtered-list as <Gtk.FilterListModel>.n-items;
|
||||
|
||||
styles [
|
||||
"participants-count-label",
|
||||
]
|
||||
}
|
||||
|
||||
[suffix]
|
||||
Image open_details {
|
||||
icon-name: "go-next-symbolic";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user