diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-04-18 17:27:47 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:22 -0500 |
commit | 1fe28ca9d6555ac03bfd8f6bf22cdad46fdf8ff0 (patch) | |
tree | 202128f4e73d0cd7905a0953217d782ef134e0c2 /app/javascript/flavours/glitch/features/compose | |
parent | fb47b6e120b735a6fb1e9358cc2856072b1bd295 (diff) |
Extend limits for poll time range to between a minute and 6 months.
Diffstat (limited to 'app/javascript/flavours/glitch/features/compose')
-rw-r--r-- | app/javascript/flavours/glitch/features/compose/components/poll_form.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/poll_form.js b/app/javascript/flavours/glitch/features/compose/components/poll_form.js index 21b5d3d73..a47b3799d 100644 --- a/app/javascript/flavours/glitch/features/compose/components/poll_form.js +++ b/app/javascript/flavours/glitch/features/compose/components/poll_form.js @@ -144,6 +144,7 @@ class PollForm extends ImmutablePureComponent { </select> <select value={expiresIn} onChange={this.handleSelectDuration}> + <option value={60}>{intl.formatMessage(messages.minutes, { number: 1 })}</option> <option value={300}>{intl.formatMessage(messages.minutes, { number: 5 })}</option> <option value={1800}>{intl.formatMessage(messages.minutes, { number: 30 })}</option> <option value={3600}>{intl.formatMessage(messages.hours, { number: 1 })}</option> @@ -151,6 +152,10 @@ class PollForm extends ImmutablePureComponent { <option value={86400}>{intl.formatMessage(messages.days, { number: 1 })}</option> <option value={259200}>{intl.formatMessage(messages.days, { number: 3 })}</option> <option value={604800}>{intl.formatMessage(messages.days, { number: 7 })}</option> + <option value={1209600}>{intl.formatMessage(messages.days, { number: 14 })}</option> + <option value={2592000}>{intl.formatMessage(messages.days, { number: 30 })}</option> + <option value={5184000}>{intl.formatMessage(messages.days, { number: 60 })}</option> + <option value={7776000}>{intl.formatMessage(messages.days, { number: 90 })}</option> </select> </div> </div> |