diff --git a/js/controllers/createProfile.js b/js/controllers/createProfile.js index 72a63d1e0..aaf1caf14 100644 --- a/js/controllers/createProfile.js +++ b/js/controllers/createProfile.js @@ -176,9 +176,4 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun }); }); }; - - $scope.openExternalLink = function(url) { - go.openExternalLink(url); - }; - }); diff --git a/js/controllers/history.js b/js/controllers/history.js index 2e8382620..b206757a8 100644 --- a/js/controllers/history.js +++ b/js/controllers/history.js @@ -145,10 +145,6 @@ angular.module('copayApp.controllers').controller('HistoryController', return w.getNetworkName().substring(0, 4); }; - $scope.openExternalLink = function(url) { - go.openExternalLink(url); - }; - $scope.cancel = function() { $modalInstance.dismiss('cancel'); }; diff --git a/js/controllers/home.js b/js/controllers/home.js index 12cf6dda1..d9fd246f4 100644 --- a/js/controllers/home.js +++ b/js/controllers/home.js @@ -2,12 +2,6 @@ angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $timeout, go, notification, identityService, Compatibility, pinService, applicationService, isMobile) { - // Global go. This should be in a better place TODO - // We dont do a 'go' directive, to use the benefits of ng-touch with ng-click - $rootScope.go = function (path) { - go.path(path); - }; - var _credentials, _firstpin; $scope.init = function() { $scope.isMobile = isMobile.any(); diff --git a/js/services/go.js b/js/services/go.js index 4801fb111..095c72c2d 100644 --- a/js/services/go.js +++ b/js/services/go.js @@ -84,5 +84,18 @@ angular.module('copayApp.services').factory('go', function($window, $rootScope, $location.path('send'); }; + + // Global go. This should be in a better place TODO + // We dont do a 'go' directive, to use the benefits of ng-touch with ng-click + $rootScope.go = function (path) { + root.path(path); + }; + + $rootScope.openExternalLink = function (url) { + root.openExternalLink(url); + }; + + + return root; }); diff --git a/views/createProfile.html b/views/createProfile.html index 84e45a0b1..99ee44ae6 100644 --- a/views/createProfile.html +++ b/views/createProfile.html @@ -121,7 +121,7 @@
diff --git a/views/includes/head.html b/views/includes/head.html index b01b875db..151e687a2 100644 --- a/views/includes/head.html +++ b/views/includes/head.html @@ -35,13 +35,20 @@ {{'Import wallet'|translate}}{{$root.iden.getName()}}
- {{'ViewProfile' | translate }} + {{'View My Profile' | translate }} diff --git a/views/modals/tx-details.html b/views/modals/tx-details.html index 30df7d0e1..2da6c8c54 100644 --- a/views/modals/tx-details.html +++ b/views/modals/tx-details.html @@ -94,7 +94,7 @@