Change default view to Swimlanes.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2020-06-08 17:28:53 +03:00
parent f935cf391e
commit 8c3322f9a9
4 changed files with 27 additions and 20 deletions

View file

@ -246,19 +246,6 @@ Migrations.add('add-checklist-items', () => {
});
});
Migrations.add('add-profile-view', () => {
Users.find().forEach(user => {
if (!user.hasOwnProperty('profile.boardView')) {
// Set default view
Users.direct.update(
{ _id: user._id },
{ $set: { 'profile.boardView': 'board-view-lists' } },
noValidate,
);
}
});
});
Migrations.add('add-card-types', () => {
Cards.find().forEach(card => {
Cards.direct.update(
@ -1044,3 +1031,16 @@ Migrations.add('add-sort-field-to-boards', () => {
}
});
});
Migrations.add('add-default-profile-view', () => {
Users.find().forEach(user => {
if (!user.hasOwnProperty('profile.boardView')) {
// Set default view
Users.direct.update(
{ _id: user._id },
{ $set: { 'profile.boardView': 'board-view-swimlanes' } },
noValidate,
);
}
});
});