add feedback link

This commit is contained in:
Matias Alejo Garcia 2014-12-10 12:07:26 -03:00
commit aece4db5b4
8 changed files with 24 additions and 19 deletions

View file

@ -176,9 +176,4 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
});
});
};
$scope.openExternalLink = function(url) {
go.openExternalLink(url);
};
});

View file

@ -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');
};

View file

@ -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();

View file

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