Skip to content

Commit

Permalink
core: Add show_topic_info function to show TopicInfoView pop up menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
srdeotarse authored and rsashank committed Sep 30, 2024
1 parent 16cff3b commit 7fdf686
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zulipterminal/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
PopUpConfirmationView,
StreamInfoView,
StreamMembersView,
TopicInfoView,
UserInfoView,
)
from zulipterminal.version import ZT_VERSION
Expand Down Expand Up @@ -293,6 +294,10 @@ def show_stream_info(self, stream_id: int) -> None:
show_stream_view = StreamInfoView(self, stream_id)
self.show_pop_up(show_stream_view, "area:stream")

def show_topic_info(self, stream_id: int, topic_name: str) -> None:
show_topic_view = TopicInfoView(self, stream_id, topic_name)
self.show_pop_up(show_topic_view, "area:topic")

def show_stream_members(self, stream_id: int) -> None:
stream_members_view = StreamMembersView(self, stream_id)
self.show_pop_up(stream_members_view, "area:stream")
Expand Down

0 comments on commit 7fdf686

Please sign in to comment.