mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Change default view to Swimlanes.
Thanks to xet7 !
This commit is contained in:
parent
f935cf391e
commit
8c3322f9a9
4 changed files with 27 additions and 20 deletions
|
|
@ -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,
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue