This commit is contained in:
Andrés Manelli 2018-04-16 14:33:53 -03:00
parent c12e003fd3
commit e5995477b8
8 changed files with 44 additions and 38 deletions

View file

@ -43,7 +43,9 @@ Users.attachSchema(new SimpleSchema({
optional: true,
autoValue() { // eslint-disable-line consistent-return
if (this.isInsert && !this.isSet) {
return {};
return {
boardView: 'board-view-lists',
};
}
},
},
@ -95,6 +97,10 @@ Users.attachSchema(new SimpleSchema({
type: String,
optional: true,
},
'profile.boardView': {
type: String,
optional: true,
},
services: {
type: Object,
optional: true,
@ -329,6 +335,14 @@ Users.mutations({
setShowCardsCountAt(limit) {
return {$set: {'profile.showCardsCountAt': limit}};
},
setBoardView(view) {
return {
$set : {
'profile.boardView': view,
},
};
},
});
Meteor.methods({