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;
}
}
}

View file

@ -22,7 +22,7 @@
</button>
</div>
<div class="col-60">
<button class="button button-standard button-primary button-outline" ng-click="showWalletSelector()">
<button class="button button-standard button-primary button-outline" ui-sref="tabs.send.wallet-to-wallet">
<img src="img/icon-w2w.svg"/><br/>
<span translate>Wallet to Wallet Transfer</span>
</button>

View file

@ -0,0 +1,43 @@
<ion-view id="wallet-to-wallet-transfer" show-tabs>
<ion-nav-bar class="bar-royal">
<ion-nav-title>{{'Wallet to wallet transfer' | translate}}</ion-nav-title>
</ion-nav-bar>
<ion-content>
<div class="header">
<div class="title">
Choose your origin wallet
</div>
<div class="subtitle">
This is where the Bitcoin will be taken out from.
</div>
</div>
<div class="list card">
<div class="item item-icon-right item-heading">
<div translate>Bitcoin Cash (BCH)</div>
<div translate class="subtitle">Instant transactions with low fees</div>
<a ui-sref="tabs.add({coin:'bch'})"><i class="icon ion-ios-plus-empty list-add-button"></i></a>
</div>
<div>
<a ng-repeat="wallet in walletsBch track by $index"
class="item item-sub item-icon-left item-big-icon-left item-icon-right wallet"
ng-click="openWallet(wallet)">
<span ng-include="'views/includes/walletList.html'"></span>
</a>
</div>
</div>
<div class="list card">
<div class="item item-icon-right item-heading">
<div translate>Bitcoin Core (BTC)</div>
<a ui-sref="tabs.add"><i class="icon ion-ios-plus-empty list-add-button"></i></a>
</div>
<div>
<a ng-repeat="wallet in walletsBtc track by $index"
class="item item-sub item-icon-left item-big-icon-left item-icon-right wallet"
ng-click="openWallet(wallet)">
<span ng-include="'views/includes/walletList.html'"></span>
</a>
</div>
</div>
</ion-content>
</ion-view>