Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

widgets: Fix not showing add poll option when poll has no title.

Harsh977f66e8fad3
diff --git a/web/src/poll_widget.ts b/web/src/poll_widget.ts
index d8ffccb7ac5..21654a93d9d 100644
--- a/web/src/poll_widget.ts
+++ b/web/src/poll_widget.ts
@@ -61,7 +61,6 @@ export function activate({
const input_mode = poll_data.get_input_mode();
const can_edit = is_my_poll && !input_mode;
const has_question = question.trim() !== "";
- const can_vote = has_question;
const waiting = !is_my_poll && !has_question;
const author_help = is_my_poll && !has_question;
@@ -71,7 +70,7 @@ export function activate({
update_edit_controls();
$elem.find(".poll-question-bar").toggle(input_mode);
- $elem.find(".poll-option-bar").toggle(can_vote);
+ $elem.find(".poll-option-bar").show();
$elem.find(".poll-please-wait").toggle(waiting);