Skip to content

Commit 9f2c0da

Browse files
committed
core: Add show_topic_info function to show TopicInfoView pop up menu.
1 parent d3ebc5f commit 9f2c0da

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
@@ -43,6 +43,7 @@
4343
PopUpConfirmationView,
4444
StreamInfoView,
4545
StreamMembersView,
46+
TopicInfoView,
4647
UserInfoView,
4748
)
4849
from zulipterminal.version import ZT_VERSION
@@ -305,6 +306,10 @@ def show_stream_info(self, stream_id: int) -> None:
305306
show_stream_view = StreamInfoView(self, stream_id)
306307
self.show_pop_up(show_stream_view, "area:stream")
307308

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

0 commit comments

Comments
 (0)