1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

hide paypal until ready

This commit is contained in:
Kyle Spearrin 2017-07-28 21:16:33 -04:00
parent 04da844b22
commit e1ec50bcad
2 changed files with 12 additions and 10 deletions

View File

@ -7,7 +7,7 @@
$scope.existingPaymentMethod = existingPaymentMethod;
$scope.paymentMethod = 'card';
$scope.dropinLoaded = false;
$scope.showPaymentOptions = true;
$scope.showPaymentOptions = false;
$scope.card = {};
var btInstance = null;

View File

@ -89,15 +89,17 @@
<h3 class="box-title">Payment Information</h3>
</div>
<div class="box-body">
<label class="radio-inline radio-lg radio-boxed">
<input type="radio" name="PaymentMethod" value="card" ng-model="paymentMethod"
ng-change="changePaymentMethod()"><i class="fa fa-fw fa-credit-card"></i> Credit Card
</label>
<label class="radio-inline radio-lg radio-boxed">
<input type="radio" name="PaymentMethod" value="paypal" ng-model="paymentMethod"
ng-change="changePaymentMethod()"><i class="fa fa-fw fa-paypal"></i> PayPal
</label>
<hr />
<div ng-if="false">
<label class="radio-inline radio-lg radio-boxed">
<input type="radio" name="PaymentMethod" value="card" ng-model="paymentMethod"
ng-change="changePaymentMethod()"><i class="fa fa-fw fa-credit-card"></i> Credit Card
</label>
<label class="radio-inline radio-lg radio-boxed">
<input type="radio" name="PaymentMethod" value="paypal" ng-model="paymentMethod"
ng-change="changePaymentMethod()"><i class="fa fa-fw fa-paypal"></i> PayPal
</label>
<hr />
</div>
<div ng-if="paymentMethod === 'paypal'">
<div id="bt-dropin-container"></div>
</div>