Added home

This commit is contained in:
Matias Pando 2014-10-31 11:49:52 -03:00
commit 470e16eaa1
6 changed files with 84 additions and 2 deletions

View file

@ -6,7 +6,8 @@ angular.module('copayApp.controllers').controller('CopayersController',
$scope.goToWallet = function() {
controllerUtils.updateAddressList();
$location.path('/receive');
$location.path('/homeWallet');
};
$scope.copayersList = function() {

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

View file

@ -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'