mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
use function for defaultView as well
This commit is contained in:
parent
26a5e3ad5a
commit
bca4d19562
1 changed files with 8 additions and 6 deletions
|
@ -114,12 +114,14 @@ Settings.schema = new SimpleSchema({
|
|||
autoform: {
|
||||
group: 'posts',
|
||||
instructions: 'The view used for the front page',
|
||||
options: _.map(viewsMenu, function (view) {
|
||||
return {
|
||||
value: camelCaseify(view.label),
|
||||
label: view.label
|
||||
};
|
||||
})
|
||||
options: function () {
|
||||
return _.map(viewsMenu, function (view) {
|
||||
return {
|
||||
value: camelCaseify(view.label),
|
||||
label: view.label
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
postsLayout: {
|
||||
|
|
Loading…
Add table
Reference in a new issue