mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 13:18:49 +01:00
Fix #1567
This commit is contained in:
parent
c12e003fd3
commit
e5995477b8
8 changed files with 44 additions and 38 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue