Merge branch 'ref/design' of https://github.com/bitpay/bitpay-wallet into feature/andoid_onboarding_fixes
This commit is contained in:
commit
fc78fa8d20
8 changed files with 72 additions and 25 deletions
|
|
@ -5,6 +5,22 @@
|
||||||
|
|
||||||
<ion-content class="padding" ng-controller="tabHomeController" ng-init="updateAllWallets(); nextStep()">
|
<ion-content class="padding" ng-controller="tabHomeController" ng-init="updateAllWallets(); nextStep()">
|
||||||
|
|
||||||
|
<div class="list card homeTip" ng-show="homeTip">
|
||||||
|
<div class="item item-icon-right item-heading">
|
||||||
|
<a ng-click="homeTip = false"><i class="icon ion-ios-close-empty close-home-tip"></i></a>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<i class="icon big-icon-svg">
|
||||||
|
<img src="img/icon-wallet.svg" class="bg"/>
|
||||||
|
</i>
|
||||||
|
</div>
|
||||||
|
<div class="title" translate>
|
||||||
|
Your bitcoin wallet is ready!
|
||||||
|
</div>
|
||||||
|
<div class="subtitle" translate>
|
||||||
|
On this screen you can see all your wallets, accounts, and assets.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="list card" ng-hide="!txps[0]">
|
<div class="list card" ng-hide="!txps[0]">
|
||||||
<a class="item item-icon-right item-heading" ui-sref="tabs.proposals" translate>
|
<a class="item item-icon-right item-heading" ui-sref="tabs.proposals" translate>
|
||||||
|
|
|
||||||
|
|
@ -345,6 +345,8 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
if (err) $log.error(err);
|
if (err) $log.error(err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$state.go('tabs.home');
|
$state.go('tabs.home', {
|
||||||
|
fromOnboarding: $stateParams.fromOnboarding
|
||||||
|
});
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,9 @@ angular.module('copayApp.controllers').controller('disclaimerController', functi
|
||||||
profileService.setDisclaimerAccepted(function(err) {
|
profileService.setDisclaimerAccepted(function(err) {
|
||||||
if (err) $log.error(err);
|
if (err) $log.error(err);
|
||||||
else {
|
else {
|
||||||
$state.go('tabs.home');
|
$state.go('tabs.home', {
|
||||||
|
fromOnboarding: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,9 @@ angular.module('copayApp.controllers').controller('termsController', function($s
|
||||||
profileService.setDisclaimerAccepted(function(err) {
|
profileService.setDisclaimerAccepted(function(err) {
|
||||||
if (err) $log.error(err);
|
if (err) $log.error(err);
|
||||||
else {
|
else {
|
||||||
$state.go('tabs.home');
|
$state.go('tabs.home', {
|
||||||
|
fromOnboarding: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('tabHomeController',
|
angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
function($rootScope, $timeout, $scope, $state, $ionicScrollDelegate, lodash, profileService, walletService, configService, $log, platformInfo, storageService, txpModalService, $window) {
|
function($rootScope, $timeout, $scope, $state, $stateParams, $ionicScrollDelegate, lodash, profileService, walletService, configService, $log, platformInfo, storageService, txpModalService, $window) {
|
||||||
$scope.externalServices = {};
|
$scope.externalServices = {};
|
||||||
$scope.bitpayCardEnabled = true; // TODO
|
$scope.bitpayCardEnabled = true; // TODO
|
||||||
$scope.openTxpModal = txpModalService.open;
|
$scope.openTxpModal = txpModalService.open;
|
||||||
$scope.version = $window.version;
|
$scope.version = $window.version;
|
||||||
$scope.name = $window.appConfig.nameCase;
|
$scope.name = $window.appConfig.nameCase;
|
||||||
|
|
||||||
|
$scope.homeTip = $stateParams.fromOnboarding;
|
||||||
configService.whenAvailable(function() {
|
configService.whenAvailable(function() {
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
var isWindowsPhoneApp = platformInfo.isWP && platformInfo.isCordova;
|
var isWindowsPhoneApp = platformInfo.isWP && platformInfo.isCordova;
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
templateUrl: 'views/tabs.html'
|
templateUrl: 'views/tabs.html'
|
||||||
})
|
})
|
||||||
.state('tabs.home', {
|
.state('tabs.home', {
|
||||||
url: '/home',
|
url: '/home/:fromOnboarding',
|
||||||
views: {
|
views: {
|
||||||
'tab-home': {
|
'tab-home': {
|
||||||
templateUrl: 'views/tab-home.html',
|
templateUrl: 'views/tab-home.html',
|
||||||
|
|
@ -627,29 +627,29 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* Buy or Sell Bitcoin
|
* Buy or Sell Bitcoin
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.state('tabs.buyandsell', {
|
.state('tabs.buyandsell', {
|
||||||
url: '/buyandsell',
|
url: '/buyandsell',
|
||||||
views: {
|
views: {
|
||||||
'tab-home': {
|
'tab-home': {
|
||||||
templateUrl: 'views/buyandsell.html'
|
templateUrl: 'views/buyandsell.html'
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* Glidera
|
* Glidera
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.state('tabs.buyandsell.glidera', {
|
.state('tabs.buyandsell.glidera', {
|
||||||
url: '/glidera',
|
url: '/glidera',
|
||||||
views: {
|
views: {
|
||||||
'tab-home@tabs': {
|
'tab-home@tabs': {
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,11 @@
|
||||||
font-weight: lighter;
|
font-weight: lighter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon.close-home-tip {
|
||||||
|
color: #666;
|
||||||
|
font-size: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
.icon.list-add-button {
|
.icon.list-add-button {
|
||||||
color: #666;
|
color: #666;
|
||||||
font-size: 38px;
|
font-size: 38px;
|
||||||
|
|
|
||||||
|
|
@ -20,5 +20,24 @@
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
.homeTip {
|
||||||
|
.item {
|
||||||
|
border-style: none;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.subtitle{
|
||||||
|
margin-left: 25px;
|
||||||
|
margin-right: 25px;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 100;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue