mirror of https://github.com/BTCPrivate/copay.git
commit
437cd3429e
|
@ -176,9 +176,4 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
|
|||
});
|
||||
});
|
||||
};
|
||||
|
||||
$scope.openExternalLink = function(url) {
|
||||
go.openExternalLink(url);
|
||||
};
|
||||
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
};
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
</div>
|
||||
<div class="right">
|
||||
<a class="button-setup text-gray"
|
||||
ng-click="openExternalLink('https://copay.io/profile-storage.html')">
|
||||
ng-click="$root.openExternalLink('https://copay.io/profile-storage.html')">
|
||||
Learn more about this option
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -35,13 +35,20 @@
|
|||
<i class="icon-download size-18 m10r"></i> {{'Import wallet'|translate}}</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#!/profile" title="Profile">
|
||||
<i class="icon-person size-18 m10r"></i> {{'Profile'|translate}}<span class="size-10 text-warning" ng-if="!$root.needsEmailConfirmation && $root.iden.backupNeeded"> [ Needs Backup ]</span></a>
|
||||
<i class="icon-person size-18 m10r"></i> {{'My Profile'|translate}}<span class="size-10 text-warning" ng-if="!$root.needsEmailConfirmation && $root.iden.backupNeeded"> [ Needs Backup ]</span></a>
|
||||
</li>
|
||||
<li><a href="#!/" title="Close" ng-click="signout()">
|
||||
<span ng-if="!$root.hasPin"><i class="icon-power size-18 m10r"></i> {{'Close'|translate}}</span>
|
||||
<span ng-if="$root.hasPin"><i class="fi-lock size-18 m10r"></i> {{'Lock'|translate}}</span>
|
||||
</a></li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li><a ng-click="$root.openExternalLink('https://github.com/bitpay/copay/issues/new')">
|
||||
<i class="fi-comment-quotes size-18 m10r"></i> {{'Leave feedback'|translate}}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</div>
|
||||
<p class="text-black m5">{{$root.iden.getName()}}</p>
|
||||
<span class="db text-gray size-10">
|
||||
<i class="fi-torso"></i> {{'ViewProfile' | translate }}
|
||||
<i class="fi-torso"></i> {{'View My Profile' | translate }}
|
||||
</span>
|
||||
|
||||
</a>
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
<div class="ellipsis text-gray" > ID: {{btx.txid}} </span>
|
||||
</div>
|
||||
|
||||
<a class="right button-setup" ng-click="openExternalLink('http://' + getShortNetworkName() + '.insight.is/tx/' + btx.txid)">
|
||||
<a class="right button-setup" ng-click="$root.openExternalLink('http://' + getShortNetworkName() + '.insight.is/tx/' + btx.txid)">
|
||||
See it on the blockchain <i class="icon-arrow-right2 vm"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue