Snapshot before refactoring the rule settings to a separate component

This commit is contained in:
Tomas Bures 2017-08-17 23:32:49 +02:00
parent 6fbbe9a497
commit d0a714b3d4
6 changed files with 474 additions and 149 deletions

View file

@ -20,11 +20,7 @@ exports.up = (knex, Promise) => (async() => {
settings.groupTemplate = field.group_template;
}
if (type === 'checkbox') {
settings.groupTemplate = field.group_template;
}
if (['dropdown', 'radio'].includes(type)) {
if (['checkbox', 'dropdown', 'radio'].includes(type)) {
settings.groupTemplate = field.group_template;
type = type + '-grouped';
}