Skip to content

Commit 4b35bc7

Browse files
committed
views: Indicate configuring/enabling notifications if checkbox disabled.
This commit adds an extra Text widget in the stream settings indicating the user to configure or enable notifications if the checkbox is disabled. Currently, there are two ways to enable notifications in ZT: - Pass the --notify flag when starting ZT. - Add notify=enabled in the zuliprc file.
1 parent 5fbb715 commit 4b35bc7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

zulipterminal/ui_tools/views.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,12 @@ def __init__(self, controller: Any, stream_id: int) -> None:
13301330
self.widgets.append(muted_setting)
13311331
self.widgets.append(pinned_setting)
13321332
self.widgets.append(visual_notification)
1333+
if not self.controller.notify_enabled:
1334+
self.widgets.append(
1335+
urwid.Text(
1336+
("msg_bold", " [notifications not configured or enabled]")
1337+
)
1338+
)
13331339
super().__init__(controller, self.widgets, "STREAM_DESC", popup_width, title)
13341340

13351341
def toggle_mute_status(self, button: Any, new_state: bool) -> None:

0 commit comments

Comments
 (0)