mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Added initial support for auto-width lists option
This commit is contained in:
parent
f6341de610
commit
0097674fc0
6 changed files with 54 additions and 2 deletions
|
|
@ -1489,3 +1489,16 @@ Migrations.add('remove-user-profile-hideCheckedItems', () => {
|
|||
noValidateMulti,
|
||||
);
|
||||
});
|
||||
|
||||
Migrations.add('add-default-auto-width-boards', () => {
|
||||
Users.find().forEach(user => {
|
||||
if (!user.hasOwnProperty('profile.autoWidths')) {
|
||||
// Set default auto widths
|
||||
Users.direct.update(
|
||||
{ _id: user._id },
|
||||
{ $set: { 'profile.autoWidths': {} } },
|
||||
noValidate,
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue