From 90195c0f383e98956c57f0ef20f9b2afbe34648f Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sat, 6 Dec 2014 17:23:26 -0300 Subject: [PATCH] home links as buttons --- js/controllers/home.js | 4 ++++ js/controllers/sidebar.js | 4 ---- views/home.html | 20 +++++++++++--------- views/includes/bottombar-mobile.html | 2 +- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/js/controllers/home.js b/js/controllers/home.js index 630a7515b..1186c6f82 100644 --- a/js/controllers/home.js +++ b/js/controllers/home.js @@ -2,6 +2,10 @@ angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, $timeout, notification, identityService, Compatibility, pinService, applicationService, isMobile) { + // Global functions (TODO should be somewere else) + $rootScope.go = function (path) { + $location.path(path); + }; var _credentials, _firstpin; $scope.init = function() { diff --git a/js/controllers/sidebar.js b/js/controllers/sidebar.js index e5319c54e..52c1f04d2 100644 --- a/js/controllers/sidebar.js +++ b/js/controllers/sidebar.js @@ -26,10 +26,6 @@ angular.module('copayApp.controllers').controller('SidebarController', function( 'link': 'more' }]; - $scope.go = function (path) { - $location.path(path); - }; - $scope.signout = function() { $rootScope.signingOut = true; identityService.signout(); diff --git a/views/home.html b/views/home.html index d61590cf8..a29c49f88 100644 --- a/views/home.html +++ b/views/home.html @@ -122,7 +122,7 @@ Copay now needs a profile to access wallets. You can import your current wallets after - creating your profile + creating your profile
diff --git a/views/includes/bottombar-mobile.html b/views/includes/bottombar-mobile.html index 5f7f5d2d7..12ab7d4bc 100644 --- a/views/includes/bottombar-mobile.html +++ b/views/includes/bottombar-mobile.html @@ -1,6 +1,6 @@