Skip to content

Commit

Permalink
core: Center the save_draft_confirmation_popup.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsashank authored and neiljp committed Jul 14, 2024
1 parent 59f2935 commit 5418195
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions zulipterminal/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,17 @@ def search_messages(self, text: str) -> None:

def save_draft_confirmation_popup(self, draft: Composition) -> None:
question = urwid.Text(
"Save this message as a draft? (This will overwrite the existing draft.)"
(
"bold",
"Save this message as a draft? "
"(This will overwrite the existing draft.)",
),
"center",
)
save_draft = partial(self.model.save_draft, draft)
self.loop.widget = PopUpConfirmationView(self, question, save_draft)
self.loop.widget = PopUpConfirmationView(
self, question, save_draft, location="center"
)

def stream_muting_confirmation_popup(
self, stream_id: int, stream_name: str
Expand Down

0 comments on commit 5418195

Please sign in to comment.