mirror of https://github.com/BTCPrivate/copay.git
home links as buttons
This commit is contained in:
parent
7bba75a20a
commit
90195c0f38
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, $timeout, notification, identityService, Compatibility, pinService, applicationService, isMobile) {
|
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;
|
var _credentials, _firstpin;
|
||||||
$scope.init = function() {
|
$scope.init = function() {
|
||||||
|
|
|
@ -26,10 +26,6 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
|
||||||
'link': 'more'
|
'link': 'more'
|
||||||
}];
|
}];
|
||||||
|
|
||||||
$scope.go = function (path) {
|
|
||||||
$location.path(path);
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.signout = function() {
|
$scope.signout = function() {
|
||||||
$rootScope.signingOut = true;
|
$rootScope.signingOut = true;
|
||||||
identityService.signout();
|
identityService.signout();
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
</div>
|
</div>
|
||||||
<b>Copay now needs a profile to access wallets.</b>
|
<b>Copay now needs a profile to access wallets.</b>
|
||||||
You can import your current wallets after
|
You can import your current wallets after
|
||||||
<a class="text-white" href="#!/createProfile">creating your profile</a>
|
<a class="text-white" ng-click="$root.go('#!/createProfile')">creating your profile</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="p10 box-setup bg-success m20b text-white" ng-show="pendingPayment">
|
<div class="p10 box-setup bg-success m20b text-white" ng-show="pendingPayment">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
|
@ -162,24 +162,26 @@
|
||||||
|
|
||||||
|
|
||||||
<div class="box-setup-footer">
|
<div class="box-setup-footer">
|
||||||
|
|
||||||
|
<div class="right">
|
||||||
|
<a class="button-setup text-gray" ng-click="$root.go('#!/settings')">
|
||||||
|
<i class="icon-wrench"></i>
|
||||||
|
<span translate>Settings</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="left m10r">
|
<div class="left m10r">
|
||||||
<a class="button-setup text-gray" href="#!/createProfile">
|
<a class="button-setup text-gray" ng-click="$root.go('#!/createProfile')">
|
||||||
<i class="icon-person"></i>
|
<i class="icon-person"></i>
|
||||||
<span translate>Create a profile</span>
|
<span translate>Create a profile</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<a class="button-setup text-gray" href="#!/importProfile">
|
<a class="button-setup text-gray" ng-click="$root.go('#!/importProfile')">
|
||||||
<i class="icon-upload"></i>
|
<i class="icon-upload"></i>
|
||||||
<span translate>Import a profile</span>
|
<span translate>Import a profile</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="right m10t">
|
|
||||||
<a class="text-gray" href="#!/settings">
|
|
||||||
<i class="icon-wrench"></i>
|
|
||||||
<span translate>Settings</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="row collapse">
|
<div class="row collapse">
|
||||||
<div class="medium-3 small-3 columns text-center bottombar-item" ng-repeat="item in menu" ui-route="{{item.link}}" ng-if="item.link!='more'">
|
<div class="medium-3 small-3 columns text-center bottombar-item" ng-repeat="item in menu" ui-route="{{item.link}}" ng-if="item.link!='more'">
|
||||||
<a ng-click="go(item.link)" ng-class="{active: isActive(item)}">
|
<a ng-click="$root.go(item.link)" ng-class="{active: isActive(item)}">
|
||||||
<i class="size-36 {{item.icon}} db"></i>
|
<i class="size-36 {{item.icon}} db"></i>
|
||||||
<div class="size-10 tu">
|
<div class="size-10 tu">
|
||||||
{{item.title}}
|
{{item.title}}
|
||||||
|
|
Loading…
Reference in New Issue