diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-04-16 14:33:53 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-04-16 14:43:10 -0300 |
commit | e5995477b80a3c8e9fd423d14fd818a5b3ad5aa0 (patch) | |
tree | 420339982c4f9903e4f193ee19ac177a766ed330 /models/users.js | |
parent | c12e003fd3ecc50bee64931bc19febee1b99c103 (diff) | |
download | wekan-e5995477b80a3c8e9fd423d14fd818a5b3ad5aa0.tar.gz wekan-e5995477b80a3c8e9fd423d14fd818a5b3ad5aa0.tar.bz2 wekan-e5995477b80a3c8e9fd423d14fd818a5b3ad5aa0.zip |
Fix #1567
Diffstat (limited to 'models/users.js')
-rw-r--r-- | models/users.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/models/users.js b/models/users.js index da8ca77c..41179875 100644 --- a/models/users.js +++ b/models/users.js @@ -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({ |