mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
Renamed release scripts
This commit is contained in:
parent
6807368c5c
commit
7f2648eafb
2 changed files with 7 additions and 7 deletions
|
|
@ -155,13 +155,13 @@ habitrpg.controller('SettingsCtrl',
|
|||
window.location.href = '/api/v2/coupons?limit='+codes.count+'&_id='+User.user._id+'&apiToken='+User.user.apiToken;
|
||||
})
|
||||
}
|
||||
$scope.release = function() {
|
||||
User.user.ops.release({});
|
||||
$scope.releasePets = function() {
|
||||
User.user.ops.releasePets({});
|
||||
$rootScope.$state.go('tasks');
|
||||
}
|
||||
|
||||
$scope.release2 = function() {
|
||||
User.user.ops.release2({});
|
||||
$scope.releaseMounts = function() {
|
||||
User.user.ops.releaseMounts({});
|
||||
$rootScope.$state.go('tasks');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ script(type='text/ng-template', id='modals/pet-key.html')
|
|||
a.btn.btn-success(ng-click='openModal("buyGems")')=env.t('buyMoreGems')
|
||||
span.gem-cost=env.t('notEnoughGems')
|
||||
span(ng-if='user.balance >= 1', ng-controller='SettingsCtrl')
|
||||
a.btn.btn-danger(ng-click='$close(); release()')=env.t('petKeyPets')
|
||||
a.btn.btn-danger(ng-click='$close(); releasePets()')=env.t('petKeyPets')
|
||||
span(ng-if='user.balance >= 1', ng-controller='SettingsCtrl')
|
||||
a.btn.btn-danger(ng-click='$close(); release2()')=env.t('petKeyMounts')
|
||||
a.btn.btn-danger(ng-click='$close(); releaseMounts()')=env.t('petKeyMounts')
|
||||
span.gem-cost
|
||||
| 4
|
||||
=env.t('gemsEach')
|
||||
=env.t('gemsEach')
|
||||
|
|
|
|||
Loading…
Reference in a new issue