diff --git a/css/src/mobile.css b/css/src/mobile.css index 181094d5b..d63300341 100644 --- a/css/src/mobile.css +++ b/css/src/mobile.css @@ -58,12 +58,6 @@ text-align: center; } - header h1.left-sidebar { - margin: 5px 10px; - text-align: left; - font-size: 16px; - } - .col3 a { height: 45px; padding: 12px 5px; @@ -233,8 +227,8 @@ border-bottom: none; } - .photo-container { - margin-right: 5px; + .side-nav li.nav-item.selected { + background-color: #3C4E60; } } diff --git a/js/controllers/homeWallet.js b/js/controllers/homeWallet.js index 8d3ec05a1..400cc5329 100644 --- a/js/controllers/homeWallet.js +++ b/js/controllers/homeWallet.js @@ -1,9 +1,16 @@ 'use strict'; -angular.module('copayApp.controllers').controller('HomeWalletController', function($scope, $rootScope, $timeout, $filter, rateService, notification) { +angular.module('copayApp.controllers').controller('HomeWalletController', function($scope, $rootScope, $timeout, $filter, $location, rateService, notification, identityService) { $scope.init = function() { $rootScope.title = 'Home'; + // fix for Safari and mobile devices + var walletId = $location.hash(); + if (walletId) { + $location.hash(''); + identityService.setFocusedWallet(walletId); + } + $scope.rateService = rateService; $scope.isRateAvailable = false; @@ -100,8 +107,6 @@ angular.module('copayApp.controllers').controller('HomeWalletController', functi },1) }, 100); - - $scope.sign = function(ntxid) { var w = $rootScope.wallet; $scope.loading = true; diff --git a/js/controllers/sidebar.js b/js/controllers/sidebar.js index 721c1bc4d..e5319c54e 100644 --- a/js/controllers/sidebar.js +++ b/js/controllers/sidebar.js @@ -1,6 +1,8 @@ 'use strict'; -angular.module('copayApp.controllers').controller('SidebarController', function($scope, $rootScope, $location, $timeout, identityService) { +angular.module('copayApp.controllers').controller('SidebarController', function($scope, $rootScope, $location, $timeout, identityService, isMobile) { + + $scope.isMobile = isMobile.any() $scope.menu = [{ 'title': 'Home', @@ -49,7 +51,6 @@ angular.module('copayApp.controllers').controller('SidebarController', function( $scope.setWallets(); }; - $scope.init = function() { // This should be called only once. @@ -90,8 +91,8 @@ angular.module('copayApp.controllers').controller('SidebarController', function( $scope.setWallets = function() { if (!$rootScope.iden) return; var ret = _.filter($rootScope.iden.listWallets(), function(w) { - return !identityService.isFocused(w.getId()); + return w; }); - $scope.wallets = ret; + $scope.wallets = _.sortBy(ret, 'name'); }; }); diff --git a/views/includes/bottombar-mobile.html b/views/includes/bottombar-mobile.html index 70ea38c4a..5f7f5d2d7 100644 --- a/views/includes/bottombar-mobile.html +++ b/views/includes/bottombar-mobile.html @@ -1,4 +1,4 @@ -
+
diff --git a/views/includes/sidebar-mobile.html b/views/includes/sidebar-mobile.html index 2a65761ea..f5b59a4f6 100644 --- a/views/includes/sidebar-mobile.html +++ b/views/includes/sidebar-mobile.html @@ -1,18 +1,16 @@ -
-
-

- +

-
+ +
    -
  • - - {{'My profile' | translate }} - -
  • {{'Create new wallet' | translate }} diff --git a/views/includes/sidebar.html b/views/includes/sidebar.html index 3b6951da0..fc8f808c0 100644 --- a/views/includes/sidebar.html +++ b/views/includes/sidebar.html @@ -1,4 +1,4 @@ -
    +
    {{$root.wallet.getName() | limitTo: 1}}
    @@ -53,7 +53,11 @@
      -