Skip to content

Commit 14638e6

Browse files
committed
core: Refactor save_draft_confirmation_popup.
1 parent 8e13ae8 commit 14638e6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

zulipterminal/core.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,17 @@ def search_messages(self, text: str) -> None:
510510

511511
def save_draft_confirmation_popup(self, draft: Composition) -> None:
512512
question = urwid.Text(
513-
"Save this message as a draft? (This will overwrite the existing draft.)"
513+
(
514+
"bold",
515+
"Save this message as a draft? "
516+
"(This will overwrite the existing draft.)",
517+
),
518+
"center",
514519
)
515520
save_draft = partial(self.model.save_draft, draft)
516-
self.loop.widget = PopUpConfirmationView(self, question, save_draft)
521+
self.loop.widget = PopUpConfirmationView(
522+
self, question, save_draft, location="center"
523+
)
517524

518525
def stream_muting_confirmation_popup(
519526
self, stream_id: int, stream_name: str

0 commit comments

Comments
 (0)