When logged in, use database for setting, so that changes are

immediate. Only on public board use cookies.
Comment out Collapse CSS that is not in use.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2019-11-19 14:09:36 +02:00
parent f595120e72
commit 351d4767d7
12 changed files with 318 additions and 131 deletions

View file

@ -794,24 +794,32 @@ Migrations.add('add-assignee', () => {
);
});
Migrations.add('remove-profile-showDesktopDragHandles', () => {
Migrations.add('add-profile-showDesktopDragHandles', () => {
Users.update(
{},
{
$unset: {
'profile.showDesktopDragHandles': 1,
'profile.showDesktopDragHandles': {
$exists: false,
},
},
{
$set: {
'profile.showDesktopDragHandles': false,
},
},
noValidateMulti,
);
});
Migrations.add('remove-profile-hiddenMinicardLabelText', () => {
Migrations.add('add-profile-hiddenMinicardLabelText', () => {
Users.update(
{},
{
$unset: {
'profile.hiddenMinicardLabelText': 1,
'profile.hiddenMinicardLabelText': {
$exists: false,
},
},
{
$set: {
'profile.hiddenMinicardLabelText': false,
},
},
noValidateMulti,