chore: Remove unusued variable

This commit is contained in:
Blade Barringer
2016-05-14 06:59:11 -05:00
parent 3e57620666
commit 25f0819f1e
2 changed files with 5 additions and 5 deletions

View File

@@ -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. //@TODO: We don't send subscriptions so the structure has changed in the back. Update this when we update the views.
$scope.gift = { $scope.gift = {
type: 'gems', type: 'gems',
gems: {amount:0, fromBalance:true}, gems: {amount: 0, fromBalance: true},
subscription: {key:''}, subscription: {key: ''},
message:'' message: ''
}; };
$scope.sendGift = function (uuid, gift) { $scope.sendGift = function (uuid) {
Members.transferGems($scope.gift.message, uuid, $scope.gift.gems.amount) Members.transferGems($scope.gift.message, uuid, $scope.gift.gems.amount)
.then(function (response) { .then(function (response) {
Notification.text(window.env.t('sentGems')); Notification.text(window.env.t('sentGems'));

View File

@@ -94,7 +94,7 @@ script(type='text/ng-template', id='modals/send-gift.html')
.modal-footer .modal-footer
- var fromBal = "gift.type=='gems' && gift.gems.fromBalance" - 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-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 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 .btn.btn-success(ng-hide=fromBal, ng-click="Payments.amazonPayments.init({type: 'single', gift: gift, giftedTo: profile._id})") Amazon Payments