mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 07:21:15 +00:00
add "emulate next day" debugging button
This commit is contained in:
parent
53d5ae51c5
commit
86ea99c2dc
2 changed files with 8 additions and 0 deletions
|
|
@ -307,3 +307,8 @@ ready (model) ->
|
|||
else
|
||||
model.set "_view.addFriendError", "User with id #{friendId} not found."
|
||||
|
||||
exports.emulateNextDay = ->
|
||||
yesterday = moment().subtract('days', 1).toString()
|
||||
user.set 'lastCron', yesterday
|
||||
window.location.reload()
|
||||
|
||||
|
|
|
|||
|
|
@ -308,6 +308,9 @@
|
|||
<!-- Footer -->
|
||||
<footer class=footer>
|
||||
<div class=container>
|
||||
<div class='pull-right'>
|
||||
<button class='btn' x-bind="click:emulateNextDay">Emulate Next Day</button>
|
||||
</div>
|
||||
<div>
|
||||
<ul>
|
||||
<li>Copyright © 2012 OCDevel LLC</li>
|
||||
|
|
|
|||
Loading…
Reference in a new issue