diff --git a/app/javascript/mastodon/features/list_timeline/index.jsx b/app/javascript/mastodon/features/list_timeline/index.jsx index f9f3a7c315..17015bb4ba 100644 --- a/app/javascript/mastodon/features/list_timeline/index.jsx +++ b/app/javascript/mastodon/features/list_timeline/index.jsx @@ -144,6 +144,11 @@ class ListTimeline extends PureComponent { })); }; + handleEditAntennaClick = (e) => { + const id = e.currentTarget.getAttribute('data-id'); + window.open(`/antennas/${id}/edit`, '_blank'); + } + handleRepliesPolicyChange = ({ target }) => { const { dispatch } = this.props; const { id } = this.props.params; @@ -163,6 +168,7 @@ class ListTimeline extends PureComponent { const title = list ? list.get('title') : id; const replies_policy = list ? list.get('replies_policy') : undefined; const isExclusive = list ? list.get('exclusive') : undefined; + const antennas = list ? (list.get('antennas')?.toArray() || []) : []; if (typeof list === 'undefined') { return ( @@ -219,6 +225,23 @@ class ListTimeline extends PureComponent { )} + + { antennas.length > 0 && ( +
+ + + + +
+ )}