wallet to wallet transfer views + css

This commit is contained in:
Sebastiaan Pasma 2018-07-18 11:54:41 +02:00
commit b8bab036e6
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F
6 changed files with 86 additions and 1 deletions

View file

@ -0,0 +1,14 @@
'use strict';
angular.module('copayApp.controllers').controller('walletToWalletController', function($scope, $rootScope, $log, profileService, configService) {
$scope.$on("$ionicView.enter", function(event, data) {
$scope.walletsBch = profileService.getWallets({coin: 'bch'});
$scope.walletsBtc = profileService.getWallets({coin: 'btc'});
configService.whenAvailable(function(config) {
$scope.selectedPriceDisplay = config.wallet.settings.priceDisplay;
});
});
});

View file

@ -295,6 +295,15 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
}
})
.state('tabs.send.wallet-to-wallet', {
url: '/wallet-to-wallet',
views: {
'tab-send@tabs': {
controller: 'walletToWalletController',
templateUrl: 'views/wallet-to-wallet-transfer.html'
}
}
})
.state('tabs.send.confirm', {
url: '/confirm/:recipientType/:toAddress/:toName/:toAmount/:toEmail/:toColor/:description/:coin/:useSendMax/:fromWalletId/:displayAddress/:requiredFeeRate',
views: {

View file

@ -8,6 +8,7 @@
@import "tab-receive";
@import "tab-scan";
@import "tab-send";
@import "wallet-to-wallet-transfer";
@import "tab-settings";
@import "wallet-colors";
@import "walletBalance";

View file

@ -0,0 +1,18 @@
#wallet-to-wallet-transfer {
.header, .list {
font-size: 12px;
margin: 20px 14px;
.title {
font-size: 20px;
font-weight: bold;
color: $v-dark-gray;
}
.subtitle {
font-size: 12px;
line-height: 1.5em;
font-weight: 300;
color: $v-dark-gray;
}
}
}