mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-05 13:33:00 +00:00
Merge pull request #86 from HabitRPG/sabe/preferences
Finish up @wc8 suggested user preferences
This commit is contained in:
commit
2ae7d1dede
2 changed files with 8 additions and 0 deletions
6
dist/habitrpg-shared.js
vendored
6
dist/habitrpg-shared.js
vendored
|
|
@ -11652,6 +11652,12 @@ var process=require("__browserify_process");(function() {
|
|||
if (user.preferences.newTaskEdit) {
|
||||
task._editing = true;
|
||||
}
|
||||
if (user.preferences.tagsCollapsed) {
|
||||
task._tags = true;
|
||||
}
|
||||
if (user.preferences.advancedCollapsed) {
|
||||
task._advanced = true;
|
||||
}
|
||||
if (typeof cb === "function") {
|
||||
cb(null, task);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -500,6 +500,8 @@ api.wrap = (user, main=true) ->
|
|||
task = api.taskDefaults(req.body)
|
||||
user["#{task.type}s"].unshift(task)
|
||||
if user.preferences.newTaskEdit then task._editing = true
|
||||
if user.preferences.tagsCollapsed then task._tags = true
|
||||
if user.preferences.advancedCollapsed then task._advanced = true
|
||||
cb? null, task
|
||||
task
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue