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 1b69a78f9..94d568369 100644 --- a/views/createProfile.html +++ b/views/createProfile.html @@ -121,7 +121,7 @@
+ ng-click="$root.openExternalLink('https://copay.io/profile-storage.html')"> Learn more about this option
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}}
  • - {{'Profile'|translate}} [ Needs Backup ] + {{'My Profile'|translate}} [ Needs Backup ]
  • {{'Close'|translate}} {{'Lock'|translate}}
  • +
  • +
  • + {{'Leave feedback'|translate}} + +
  • + + diff --git a/views/includes/sidebar-mobile.html b/views/includes/sidebar-mobile.html index 608ed846a..22ec034ce 100644 --- a/views/includes/sidebar-mobile.html +++ b/views/includes/sidebar-mobile.html @@ -7,7 +7,7 @@

    {{$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 @@
    ID: {{btx.txid}}
    - + See it on the blockchain