mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
feat(restore): add restore-gp back in. Parly to end the winter event,
partly due to the convo at #2681 regarding subscriptions. Fixes #2681
This commit is contained in:
parent
4ba5a9cf26
commit
179316e10f
2 changed files with 9 additions and 7 deletions
|
|
@ -166,9 +166,11 @@ acceptablePUTPaths = _.reduce(require('./../models/user').schema.paths, function
|
||||||
if (found) m[leaf]=true;
|
if (found) m[leaf]=true;
|
||||||
return m;
|
return m;
|
||||||
}, {})
|
}, {})
|
||||||
_.each('stats.gp'.split(' '), function(removePath){
|
|
||||||
delete acceptablePUTPaths[removePath];
|
//// Uncomment this if we we want to disable GP-restoring (eg, holiday events)
|
||||||
})
|
//_.each('stats.gp'.split(' '), function(removePath){
|
||||||
|
// delete acceptablePUTPaths[removePath];
|
||||||
|
//})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update user
|
* Update user
|
||||||
|
|
|
||||||
|
|
@ -24,11 +24,11 @@ div(ng-controller='SettingsCtrl')
|
||||||
.option-group.option-medium
|
.option-group.option-medium
|
||||||
input.option-content(type='number', step="any", data-for='stats.exp', ng-model='restoreValues.stats.exp')
|
input.option-content(type='number', step="any", data-for='stats.exp', ng-model='restoreValues.stats.exp')
|
||||||
span.input-suffix=env.t('experience')
|
span.input-suffix=env.t('experience')
|
||||||
.option-group.option-medium(ng-if='!user.purchased.plan.customerId')
|
.option-group.option-medium
|
||||||
//input.option-content(type='number', step="any", data-for='stats.gp', ng-model='restoreValues.stats.gp')
|
input.option-content(type='number', step="any", data-for='stats.gp', ng-model='restoreValues.stats.gp')
|
||||||
input.option-content(type='number', step="any", data-for='stats.gp', ng-model='restoreValues.stats.gp',disabled)
|
//input.option-content(type='number', step="any", data-for='stats.gp', ng-model='restoreValues.stats.gp',disabled)
|
||||||
span.input-suffix=env.t('gold')
|
span.input-suffix=env.t('gold')
|
||||||
p.alert
|
//-p.alert
|
||||||
small=env.t('disabledWinterEvent')
|
small=env.t('disabledWinterEvent')
|
||||||
.option-group.option-medium
|
.option-group.option-medium
|
||||||
input.option-content(type='number', step="any", data-for='stats.mp', ng-model='restoreValues.stats.mp')
|
input.option-content(type='number', step="any", data-for='stats.mp', ng-model='restoreValues.stats.mp')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue