diff --git a/bigbluebutton-html5/imports/ui/components/actions-bar/quick-poll-dropdown/component.jsx b/bigbluebutton-html5/imports/ui/components/actions-bar/quick-poll-dropdown/component.jsx index 76f1e7c5a3d69c11fa200d5323ac1e7d41cf32cf..366f7e4b61362229ab518852cd042f18d6d1d2d1 100644 --- a/bigbluebutton-html5/imports/ui/components/actions-bar/quick-poll-dropdown/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/actions-bar/quick-poll-dropdown/component.jsx @@ -43,30 +43,7 @@ const propTypes = { amIPresenter: PropTypes.bool.isRequired, }; -const getLocalizedAnswers = (type, intl, pollTypes) => { - switch (type) { - case pollTypes.TrueFalse: - return [ - intl.formatMessage(intlMessages.trueOptionLabel), - intl.formatMessage(intlMessages.falseOptionLabel), - ]; - case pollTypes.YesNo: - return [ - intl.formatMessage(intlMessages.yesOptionLabel), - intl.formatMessage(intlMessages.noOptionLabel), - ]; - case pollTypes.YesNoAbstention: - return [ - intl.formatMessage(intlMessages.yesOptionLabel), - intl.formatMessage(intlMessages.noOptionLabel), - intl.formatMessage(intlMessages.abstentionOptionLabel), - ]; - default: - return null; - } -}; - -const getAvailableQuickPolls = (slideId, parsedSlides, startPoll, intl, pollTypes) => { +const getAvailableQuickPolls = (slideId, parsedSlides, startPoll, pollTypes) => { const pollItemElements = parsedSlides.map((poll) => { let { poll: label, type } = poll; let itemLabel = label; @@ -78,8 +55,6 @@ const getAvailableQuickPolls = (slideId, parsedSlides, startPoll, intl, pollType { const { options } = itemLabel; itemLabel = options.join('/').replace(/[\n.)]/g, ''); - } else { - answers = getLocalizedAnswers(type, intl, pollTypes); } // removes any whitespace from the label @@ -150,14 +125,6 @@ class QuickPollDropdown extends Component { singlePollType = type; } - if (singlePollType === pollTypes.TrueFalse || - singlePollType === pollTypes.YesNo || - singlePollType === pollTypes.YesNoAbstention) - { - answers = getLocalizedAnswers(singlePollType, intl, pollTypes); - singlePollType = pollTypes.Custom; - } - let btn = ( <Button aria-label={intl.formatMessage(intlMessages.quickPollLabel)}