mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Fix #7388 - Invert tag collapse when adding tasks
This commit is contained in:
committed by
Blade Barringer
parent
6e78a14f87
commit
7a9e50dbba
@@ -7,17 +7,9 @@ module.exports = function addTask (user, req = {body: {}}) {
|
||||
user.tasksOrder[`${task.type}s`].unshift(task._id);
|
||||
user[`${task.type}s`].unshift(task);
|
||||
|
||||
if (user.preferences.newTaskEdit) {
|
||||
task._editing = true;
|
||||
}
|
||||
|
||||
if (user.preferences.tagsCollapsed) {
|
||||
task._tags = true;
|
||||
}
|
||||
|
||||
if (!user.preferences.advancedCollapsed) {
|
||||
task._advanced = true;
|
||||
}
|
||||
task._editing = user.preferences.newTaskEdit;
|
||||
task._tags = !user.preferences.tagsCollapsed;
|
||||
task._advanced = !user.preferences.advancedCollapsed;
|
||||
|
||||
return task;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user