mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
back to refresh on party leave
This commit is contained in:
parent
6ffe57eb00
commit
cd517c7f7c
1 changed files with 5 additions and 1 deletions
|
|
@ -144,11 +144,15 @@ module.exports.app = (appExports, model) ->
|
|||
model.del "parties.#{id}"
|
||||
model.set '_party', null
|
||||
model.set '_partyMembers', null
|
||||
setTimeout (-> window.location.reload true), 10
|
||||
return
|
||||
|
||||
# This should handle not requiring a refresh, but alas.
|
||||
partyUnsubscribe model, ->
|
||||
selfQ = model.query('users').withId(model.get('_userId') or model.session.userId)
|
||||
selfQ.subscribe (err, u) ->
|
||||
model.ref '_user', u.at(0)
|
||||
browser.resetDom model
|
||||
#setTimeout (-> window.location.reload true), 1
|
||||
|
||||
|
||||
#exports.partyDisband = ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue