wallet to wallet transfer views + css
This commit is contained in:
parent
8c124fba19
commit
b8bab036e6
6 changed files with 86 additions and 1 deletions
14
src/js/controllers/walletToWalletController.js
Normal file
14
src/js/controllers/walletToWalletController.js
Normal 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;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
18
src/sass/views/wallet-to-wallet-transfer.scss
Normal file
18
src/sass/views/wallet-to-wallet-transfer.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
43
www/views/wallet-to-wallet-transfer.html
Normal file
43
www/views/wallet-to-wallet-transfer.html
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue