mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-27 05:29:59 +00:00
19 lines
444 B
CoffeeScript
19 lines
444 B
CoffeeScript
|
|
module.exports.app = (appExports, model) ->
|
||
|
|
user = model.at '_user'
|
||
|
|
|
||
|
|
appExports.challengeCreate = ->
|
||
|
|
model.set '_challenge.new',
|
||
|
|
name: ''
|
||
|
|
habits: []
|
||
|
|
dailies: []
|
||
|
|
todos: []
|
||
|
|
rewards: []
|
||
|
|
assignees: 'party'
|
||
|
|
model.set '_challenge.creating', true
|
||
|
|
|
||
|
|
appExports.challengeSave = ->
|
||
|
|
#TODO
|
||
|
|
|
||
|
|
appExports.challengeDiscard = ->
|
||
|
|
model.set '_challenge.new', {}
|
||
|
|
model.set '_challenge.creating', false
|