discourse/plugins/poll/assets/javascripts/components/poll-results-standard-voter...

15 lines
395 B
Plaintext
Raw Normal View History

2016-06-07 06:55:01 -04:00
import computed from 'ember-addons/ember-computed-decorators';
import PollVoters from 'discourse/plugins/poll/components/poll-voters';
export default PollVoters.extend({
2016-06-09 09:33:17 -04:00
@computed("option.votes", "pollsVoters")
canLoadMore(voters, pollsVoters) {
return pollsVoters.length < voters;
2016-06-07 06:55:01 -04:00
},
2016-06-09 09:33:17 -04:00
@computed("option.voter_ids", "offset")
voterIds(ids) {
return this._getIds(ids);
2016-06-07 06:55:01 -04:00
}
});