Loomio

Questions about where pollTypes actually defined

Yin Yin PublicSeen by 64

I tried to figure out how to start a default type of poll. I traced back to poll_common_start_form and find $scope.pollTypes = > AppConfig.pollTypes, but the file 'shared/services/app_config' is nearly empty. Where are some files I should look at to figure out what's going on when you click a button and the program knows which type you choose?

Yin Yin

$scope.pollTypes = -> AppConfig.pollTypes

Robert Guthrie

Hi @yinyin. PollTypes are defined in config/poll_templates.yml

FYI: Our intention in the next 3 months is to move this to the database, and allow users to create their own poll templates for their group.