mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
add items to the top of the list, since "add new __" is at the top
This commit is contained in:
parent
4b1d7d6830
commit
3a4d79e175
1 changed files with 4 additions and 4 deletions
|
|
@ -50,16 +50,16 @@ module.exports.app = (appExports, model) ->
|
|||
switch type
|
||||
|
||||
when 'habit'
|
||||
list.push {type: type, text: text, notes: '', value: 0, up: true, down: true}
|
||||
list.unshift {type: type, text: text, notes: '', value: 0, up: true, down: true}
|
||||
|
||||
when 'reward'
|
||||
list.push {type: type, text: text, notes: '', value: 20 }
|
||||
list.unshift {type: type, text: text, notes: '', value: 20 }
|
||||
|
||||
when 'daily'
|
||||
list.push {type: type, text: text, notes: '', value: 0, repeat:{su:true,m:true,t:true,w:true,th:true,f:true,s:true}, completed: false }
|
||||
list.unshift {type: type, text: text, notes: '', value: 0, repeat:{su:true,m:true,t:true,w:true,th:true,f:true,s:true}, completed: false }
|
||||
|
||||
when 'todo'
|
||||
list.push {type: type, text: text, notes: '', value: 0, completed: false }
|
||||
list.unshift {type: type, text: text, notes: '', value: 0, completed: false }
|
||||
|
||||
# list.on 'set', '*.completed', (i, completed, previous, isLocal) ->
|
||||
# # Move the item to the bottom if it was checked off
|
||||
|
|
|
|||
Loading…
Reference in a new issue