mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 12:32:39 -05:00
14 lines
395 B
JavaScript
14 lines
395 B
JavaScript
import computed from 'ember-addons/ember-computed-decorators';
|
|
import PollVoters from 'discourse/plugins/poll/components/poll-voters';
|
|
|
|
export default PollVoters.extend({
|
|
@computed("option.votes", "pollsVoters")
|
|
canLoadMore(voters, pollsVoters) {
|
|
return pollsVoters.length < voters;
|
|
},
|
|
|
|
@computed("option.voter_ids", "offset")
|
|
voterIds(ids) {
|
|
return this._getIds(ids);
|
|
}
|
|
});
|