mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 22:21:19 +08:00
FEATURE: Allow single option polls (#8853)
This commit is contained in:

committed by
GitHub

parent
53529a3427
commit
5d97286fa7
@ -272,9 +272,9 @@ export default Controller.extend({
|
||||
)
|
||||
disableInsert(count, isRegular, isMultiple, isNumber, pollMin, pollMax) {
|
||||
return (
|
||||
(isRegular && count < 2) ||
|
||||
(isRegular && count < 1) ||
|
||||
(isMultiple && count < pollMin && pollMin >= pollMax) ||
|
||||
(isNumber ? false : count < 2)
|
||||
(isNumber ? false : count < 1)
|
||||
);
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user