Skip to content

Commit 93f4c69

Browse files
srdeotarseneiljp
authored andcommitted
core: Add show_topic_info function to show TopicInfoView pop up menu.
1 parent 8226ca7 commit 93f4c69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zulipterminal/core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
PopUpConfirmationView,
4141
StreamInfoView,
4242
StreamMembersView,
43+
TopicInfoView,
4344
UserInfoView,
4445
)
4546
from zulipterminal.version import ZT_VERSION
@@ -304,6 +305,10 @@ def show_stream_info(self, stream_id: int) -> None:
304305
show_stream_view = StreamInfoView(self, stream_id)
305306
self.show_pop_up(show_stream_view, "area:stream")
306307

308+
def show_topic_info(self, stream_id: int, topic_name: str) -> None:
309+
show_topic_view = TopicInfoView(self, stream_id, topic_name)
310+
self.show_pop_up(show_topic_view, "area:topic")
311+
307312
def show_stream_members(self, stream_id: int) -> None:
308313
stream_members_view = StreamMembersView(self, stream_id)
309314
self.show_pop_up(stream_members_view, "area:stream")

0 commit comments

Comments
 (0)