mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
chore: Remove unusued variable
This commit is contained in:
@@ -33,12 +33,12 @@ habitrpg
|
||||
//@TODO: We don't send subscriptions so the structure has changed in the back. Update this when we update the views.
|
||||
$scope.gift = {
|
||||
type: 'gems',
|
||||
gems: {amount:0, fromBalance:true},
|
||||
subscription: {key:''},
|
||||
message:''
|
||||
gems: {amount: 0, fromBalance: true},
|
||||
subscription: {key: ''},
|
||||
message: ''
|
||||
};
|
||||
|
||||
$scope.sendGift = function (uuid, gift) {
|
||||
$scope.sendGift = function (uuid) {
|
||||
Members.transferGems($scope.gift.message, uuid, $scope.gift.gems.amount)
|
||||
.then(function (response) {
|
||||
Notification.text(window.env.t('sentGems'));
|
||||
|
||||
@@ -94,7 +94,7 @@ script(type='text/ng-template', id='modals/send-gift.html')
|
||||
|
||||
.modal-footer
|
||||
- var fromBal = "gift.type=='gems' && gift.gems.fromBalance"
|
||||
button.btn.btn-primary(ng-show=fromBal, ng-click='sendGift(profile._id, gift)')=env.t("send")
|
||||
button.btn.btn-primary(ng-show=fromBal, ng-click='sendGift(profile._id)')=env.t("send")
|
||||
a.btn.btn-primary(ng-hide=fromBal, ng-click='Payments.showStripe({gift:gift, uuid:profile._id})')=env.t('card')
|
||||
a.btn.btn-warning(ng-hide=fromBal, href='/paypal/checkout?_id={{::user._id}}&apiToken={{::user.apiToken}}&gift={{Payments.encodeGift(profile._id, gift)}}') PayPal
|
||||
.btn.btn-success(ng-hide=fromBal, ng-click="Payments.amazonPayments.init({type: 'single', gift: gift, giftedTo: profile._id})") Amazon Payments
|
||||
|
||||
Reference in New Issue
Block a user