Added home
This commit is contained in:
parent
a6719b56c7
commit
470e16eaa1
6 changed files with 84 additions and 2 deletions
|
|
@ -6,7 +6,8 @@ angular.module('copayApp.controllers').controller('CopayersController',
|
|||
|
||||
$scope.goToWallet = function() {
|
||||
controllerUtils.updateAddressList();
|
||||
$location.path('/receive');
|
||||
$location.path('/homeWallet');
|
||||
|
||||
};
|
||||
|
||||
$scope.copayersList = function() {
|
||||
|
|
|
|||
17
js/controllers/homeWallet.js
Normal file
17
js/controllers/homeWallet.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('HomeWalletController',
|
||||
function($scope, $rootScope, $timeout, $modal, controllerUtils) {
|
||||
controllerUtils.redirIfNotComplete();
|
||||
|
||||
$rootScope.title = 'Home';
|
||||
|
||||
|
||||
if ($rootScope.addrInfos) {
|
||||
|
||||
$scope.address = $rootScope.addrInfos[0];
|
||||
console.log('$scope.address', $scope.address);
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
|
|
@ -3,6 +3,10 @@
|
|||
angular.module('copayApp.controllers').controller('SidebarController', function($scope, $rootScope, $location, controllerUtils) {
|
||||
|
||||
$scope.menu = [{
|
||||
'title': 'Home',
|
||||
'icon': 'fi-home',
|
||||
'link': 'homeWallet'
|
||||
}, {
|
||||
'title': 'Receive',
|
||||
'icon': 'fi-download',
|
||||
'link': 'receive'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue