mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
feat(attributes): Add backfill button in flat and classbased allocation modes
Partial implementation of a "distribute points now" button for backfilling accrued Attribute points. Works with flat and classbased allocation so far; taskbased will require much fancier handling.
This commit is contained in:
parent
f7f4a0c166
commit
76a7ab5bcc
1 changed files with 5 additions and 0 deletions
|
|
@ -155,6 +155,11 @@ script(id='partials/options.profile.stats.html', type='text/ng-template')
|
|||
=env.t('taskallocation')
|
||||
|
||||
i.icon-question-sign(popover-trigger='mouseenter', popover-placement='right', popover=env.t('taskallocationpopover'))
|
||||
div(ng-show='user.preferences.automaticAllocation && !(user.preferences.allocationMode === "taskbased") && (user.stats.points > 0)')
|
||||
a.btn.btn-primary.btn-mini(ng-click='user.ops.allocateNow(user.stats)', popover-trigger='mouseenter', popover-placement='right', popover=env.t('distributepointspopover'))
|
||||
i.icon-download.icon-white
|
||||
|
||||
=env.t('distributepoints')
|
||||
tr
|
||||
td= env.t('allocatestr') + ' {{user.stats.str}}'
|
||||
td
|
||||
|
|
|
|||
Loading…
Reference in a new issue