home links as buttons

This commit is contained in:
Matias Alejo Garcia 2014-12-06 17:23:26 -03:00
parent 7bba75a20a
commit 90195c0f38
4 changed files with 16 additions and 14 deletions

View File

@ -2,6 +2,10 @@
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;
$scope.init = function() {

View File

@ -26,10 +26,6 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
'link': 'more'
}];
$scope.go = function (path) {
$location.path(path);
};
$scope.signout = function() {
$rootScope.signingOut = true;
identityService.signout();

View File

@ -122,7 +122,7 @@
</div>
<b>Copay now needs a profile to access wallets.</b>
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 class="p10 box-setup bg-success m20b text-white" ng-show="pendingPayment">
<div class="left">
@ -162,24 +162,26 @@
<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">
<a class="button-setup text-gray" href="#!/createProfile">
<a class="button-setup text-gray" ng-click="$root.go('#!/createProfile')">
<i class="icon-person"></i>
<span translate>Create a profile</span>
</a>
</div>
<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>
<span translate>Import a profile</span>
</a>
</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>

View File

@ -1,6 +1,6 @@
<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'">
<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>
<div class="size-10 tu">
{{item.title}}