bump poll sizes to 33 options x 202 chars
parent
0d17c2bf2e
commit
5c27502afa
|
@ -77,7 +77,7 @@ class Option extends React.PureComponent {
|
|||
|
||||
<AutosuggestInput
|
||||
placeholder={intl.formatMessage(messages.option_placeholder, { number: index + 1 })}
|
||||
maxlength={111}
|
||||
maxlength={202}
|
||||
value={title}
|
||||
onChange={this.handleOptionTitleChange}
|
||||
suggestions={this.props.suggestions}
|
||||
|
@ -142,7 +142,7 @@ class PollForm extends ImmutablePureComponent {
|
|||
</ul>
|
||||
|
||||
<div className='poll__footer'>
|
||||
{options.size < 6 && (
|
||||
{options.size < 33 && (
|
||||
<button className='button button-secondary' onClick={this.handleAddOption}><Icon id='plus' /> <FormattedMessage {...messages.add_option} /></button>
|
||||
)}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class PollValidator < ActiveModel::Validator
|
||||
MAX_OPTIONS = 6
|
||||
MAX_OPTION_CHARS = 111
|
||||
MAX_OPTIONS = 33
|
||||
MAX_OPTION_CHARS = 202
|
||||
MAX_EXPIRATION = 6.months.freeze
|
||||
MIN_EXPIRATION = 1.minute.freeze
|
||||
|
||||
|
|
Loading…
Reference in New Issue