Available funds.
This commit is contained in:
parent
91daae9f7a
commit
507fb21862
3 changed files with 39 additions and 25 deletions
|
|
@ -10,6 +10,7 @@ function amountController(configService, $filter, $ionicHistory, $ionicModal, $i
|
||||||
vm.alternativeAmount = '';
|
vm.alternativeAmount = '';
|
||||||
vm.alternativeUnit = '';
|
vm.alternativeUnit = '';
|
||||||
vm.amountModel = { amount: 0 };
|
vm.amountModel = { amount: 0 };
|
||||||
|
vm.availableFunds = '251.00 USD';
|
||||||
vm.fromWalletId = '';
|
vm.fromWalletId = '';
|
||||||
vm.globalResult = '';
|
vm.globalResult = '';
|
||||||
vm.isRequestingSpecificAmount = false;
|
vm.isRequestingSpecificAmount = false;
|
||||||
|
|
@ -409,6 +410,7 @@ function amountController(configService, $filter, $ionicHistory, $ionicModal, $i
|
||||||
|| (result >= vm.minShapeshiftAmount && result <= vm.maxShapeshiftAmount));
|
|| (result >= vm.minShapeshiftAmount && result <= vm.maxShapeshiftAmount));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log('allowSend: ', vm.allowSend);
|
||||||
};
|
};
|
||||||
|
|
||||||
function processResult(val) {
|
function processResult(val) {
|
||||||
|
|
|
||||||
|
|
@ -365,27 +365,35 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.send-amount-actions {
|
.send-amount-extras {
|
||||||
margin-top: 15px;
|
display: flex;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin: 0 14px;
|
||||||
|
|
||||||
|
.extra {
|
||||||
|
display: inline-block;
|
||||||
|
flex: 0 1 auto;
|
||||||
|
font-size: 12pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
flex: 0 1 auto;
|
||||||
|
line-height: 1.2em;
|
||||||
|
|
||||||
|
+ .button {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.button {
|
|
||||||
flex: 1 1 auto;
|
|
||||||
line-height: 1.2em;
|
|
||||||
|
|
||||||
+ .button {
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,20 +35,24 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="send-amount-actions text-center">
|
<div class="send-amount-extras text-center">
|
||||||
<button class="button button-sendmax" ng-if="!vm.isRequestingSpecificAmount" ng-click="vm.sendMax()">
|
<button class="extra button button-sendmax" ng-click="vm.openPopup()">
|
||||||
<span>
|
|
||||||
<i class="icon ion-ios-speedometer-outline"></i> 
|
|
||||||
<span translate>Send max amount</span>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button class="button button-sendmax" ng-click="vm.openPopup()">
|
|
||||||
<span>
|
<span>
|
||||||
<i class="icon ion-social-usd"></i> 
|
<i class="icon ion-social-usd"></i> 
|
||||||
<span translate>Change currency</span>
|
<span translate>Change currency</span>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
<div class="extra">
|
||||||
|
Available Funds: <span>{{vm.availableFunds}}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<button class="button button-sendmax" ng-if="!vm.isRequestingSpecificAmount" ng-click="vm.sendMax()">
|
||||||
|
<span>
|
||||||
|
<i class="icon ion-ios-speedometer-outline"></i> 
|
||||||
|
<span translate>Send max amount</span>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="keypad-container" style="background: #fff; position: absolute; bottom: 0; margin-bottom: 57px; width: 100%;">
|
<div class="keypad-container" style="background: #fff; position: absolute; bottom: 0; margin-bottom: 57px; width: 100%;">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue