mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
poll widget: Only show "Add option" if a question has been set.
This makes the UI less confusing.
This commit is contained in:
@@ -202,6 +202,9 @@ exports.activate = function (opts) {
|
||||
}
|
||||
if (widget_data.question !== '') {
|
||||
elem.find('button.poll-question').text(i18n.t('Edit question'));
|
||||
elem.find('.poll-comment-bar').show();
|
||||
} else {
|
||||
elem.find('.poll-comment-bar').hide();
|
||||
}
|
||||
|
||||
elem.find("button.poll-vote").on('click', function (e) {
|
||||
|
||||
Reference in New Issue
Block a user