Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Conversation

@jjasonclark
Copy link
Contributor

Layouts can be customized via a settings file. Move code to apply this to the generate layout function. This make it so the panels config doesn't need to change during the program.

This feature will be used in a future PR.

Copy link
Contributor

@mscottx88 mscottx88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, nice.

@jjasonclark
Copy link
Contributor Author

PR #87 also changes this code. It uses the same method but in a different location.

Copy link
Member

@ryan-roemer ryan-roemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor nit to refactor, rest LGTM

}
return _.merge(view, { view: customization });
});
return customized;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable customized unneeded. Just return the .map()

Remove `customized` variable
@jjasonclark jjasonclark merged commit 124e443 into FormidableLabs:master Dec 27, 2017
@jjasonclark jjasonclark deleted the single_config branch December 27, 2017 16:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants