header css

This commit is contained in:
Sebastiaan Pasma 2018-08-06 11:25:29 +02:00
commit ec354bd340
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F
3 changed files with 18 additions and 7 deletions

View file

@ -105,6 +105,10 @@ function reviewController(addressbookService, bitcoinCashJsService, bitcore, bit
} }
vm.approve = function() { vm.approve = function() {
if (vm.thirdParty.id === 'shapeshift') {
shapeshiftService.shiftIt();
return;
}
if (!tx || !vm.originWallet) return; if (!tx || !vm.originWallet) return;

View file

@ -1,26 +1,32 @@
'use strict'; 'use strict';
angular.module('copayApp.services').factory('shapeshiftService', function($http, $log, lodash, moment, ongoingProcess, shapeshiftApiService, storageService, configService, platformInfo, servicesService) { angular.module('copayApp.services').factory('shapeshiftService', function($http, $interval, $log, lodash, moment, ongoingProcess, shapeshiftApiService, storageService, configService, incomingData, platformInfo, servicesService) {
var root = {}; var root = {};
root.ShiftState = 'Shift'; root.ShiftState = 'Shift';
root.withdrawalAddress = '' root.withdrawalAddress = ''
root.returnAddress = '' root.returnAddress = ''
root.amount = ''; root.amount = '';
root.marketData = {} root.marketData = {}
this.withdrawalAddress = function(address) { root.withdrawalAddress = function(address) {
root.withdrawalAddress = address; root.withdrawalAddress = address;
}; };
this.returnAddress = function(address) { root.returnAddress = function(address) {
root.returnAddress = address; root.returnAddress = address;
}; };
this.amount = function(amount) { root.amount = function(amount) {
root.amount = amount; root.amount = amount;
}; };
this.fromWalletId = function(id) { root.fromWalletId = function(id) {
root.fromWalletId = id; root.fromWalletId = id;
}; };
this.toWalletId = function(id) { root.toWalletId = function(id) {
root.toWalletId = id; root.toWalletId = id;
}; };
root.coinIn = function(coinIn) {
root.coinIn = coinIn.toUpperCase();
};
root.coinOut = function(coinOut) {
root.coinOut = coinOut.toUpperCase();
};
root.getMarketDataIn = function(coin) { root.getMarketDataIn = function(coin) {
if(coin === root.coinOut) return root.getMarketData(root.coinOut, root.coinIn); if(coin === root.coinOut) return root.getMarketData(root.coinOut, root.coinIn);
@ -104,6 +110,7 @@ angular.module('copayApp.services').factory('shapeshiftService', function($http,
var shapeshiftData = { var shapeshiftData = {
fromWalletId: root.fromWalletId, fromWalletId: root.fromWalletId,
toWalletId: root.toWalletId,
minAmount: root.marketData.minimum, minAmount: root.marketData.minimum,
maxAmount: root.marketData.maxLimit, maxAmount: root.marketData.maxLimit,
orderId: root.depositInfo.orderId orderId: root.depositInfo.orderId

View file

@ -18,6 +18,6 @@
} }
} }
.header.shapeshift { .header.shapeshift {
background: url(../img/shapeshiftbg.jpg) center center no-repeat #28394d; background: url(../img/shapeshiftbg.jpg) center center repeat #28394d;
opacity: 0.99; opacity: 0.99;
} }