Skip to content

Commit c2e412b

Browse files
srdeotarsersashank
authored andcommitted
core: Add show_topic_info function to show TopicInfoView pop up menu.
1 parent 16c4d8f commit c2e412b

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
@@ -44,6 +44,7 @@
4444
PopUpConfirmationView,
4545
StreamInfoView,
4646
StreamMembersView,
47+
TopicInfoView,
4748
UserInfoView,
4849
)
4950
from zulipterminal.version import ZT_VERSION
@@ -293,6 +294,10 @@ def show_stream_info(self, stream_id: int) -> None:
293294
show_stream_view = StreamInfoView(self, stream_id)
294295
self.show_pop_up(show_stream_view, "area:stream")
295296

297+
def show_topic_info(self, stream_id: int, topic_name: str) -> None:
298+
show_topic_view = TopicInfoView(self, stream_id, topic_name)
299+
self.show_pop_up(show_topic_view, "area:topic")
300+
296301
def show_stream_members(self, stream_id: int) -> None:
297302
stream_members_view = StreamMembersView(self, stream_id)
298303
self.show_pop_up(stream_members_view, "area:stream")

0 commit comments

Comments
 (0)