Skip to content

Commit e7c85d8

Browse files
committed
core: Add show_topic_info function to show TopicInfoView pop up menu.
1 parent b82946d commit e7c85d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zulipterminal/core.py

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
PopUpConfirmationView,
3737
StreamInfoView,
3838
StreamMembersView,
39+
TopicInfoView,
3940
UserInfoView,
4041
)
4142
from zulipterminal.version import ZT_VERSION
@@ -300,6 +301,10 @@ def show_stream_info(self, stream_id: int) -> None:
300301
show_stream_view = StreamInfoView(self, stream_id)
301302
self.show_pop_up(show_stream_view, "area:stream")
302303

304+
def show_topic_info(self, stream_id: int, topic_name: str) -> None:
305+
show_topic_view = TopicInfoView(self, stream_id, topic_name)
306+
self.show_pop_up(show_topic_view, "area:stream")
307+
303308
def show_stream_members(self, stream_id: int) -> None:
304309
stream_members_view = StreamMembersView(self, stream_id)
305310
self.show_pop_up(stream_members_view, "area:stream")

0 commit comments

Comments
 (0)