diff --git a/css/src/main.css b/css/src/main.css index a0957a77f..8e420c639 100644 --- a/css/src/main.css +++ b/css/src/main.css @@ -176,7 +176,7 @@ header .alt-currency { border-bottom-left-radius: 3px; position: absolute; right: 14px; - width: 100px; + width: 180px; list-style-type: none; top: 47px;nt } diff --git a/js/controllers/createWallet.js b/js/controllers/createWallet.js new file mode 100644 index 000000000..5a7e034db --- /dev/null +++ b/js/controllers/createWallet.js @@ -0,0 +1,5 @@ +'use strict'; +angular.module('copayApp.controllers').controller('CreateWalletController', function($scope, $rootScope) { + + $rootScope.title = 'Create Wallet'; +}); diff --git a/js/controllers/manage.js b/js/controllers/profile.js similarity index 83% rename from js/controllers/manage.js rename to js/controllers/profile.js index 347d07900..c034d0858 100644 --- a/js/controllers/manage.js +++ b/js/controllers/profile.js @@ -1,8 +1,8 @@ 'use strict'; -angular.module('copayApp.controllers').controller('ManageController', function($scope, $rootScope, $location, controllerUtils, backupService) { +angular.module('copayApp.controllers').controller('ProfileController', function($scope, $rootScope, $location, controllerUtils, backupService) { $scope.isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; - $rootScope.title = 'Manage wallets'; + $rootScope.title = 'Profile'; $scope.downloadBackup = function() { backupService.profileDownload($rootScope.iden); diff --git a/js/routes.js b/js/routes.js index c179876f7..f1747c928 100644 --- a/js/routes.js +++ b/js/routes.js @@ -73,8 +73,12 @@ angular templateUrl: 'views/warning.html', logged: true }) - .when('/manage', { - templateUrl: 'views/manage.html', + .when('/profile', { + templateUrl: 'views/profile.html', + logged: true + }) + .when('/createWallet', { + templateUrl: 'views/createWallet.html', logged: true }); diff --git a/js/services/controllerUtils.js b/js/services/controllerUtils.js index a7e374371..d8c013283 100644 --- a/js/services/controllerUtils.js +++ b/js/services/controllerUtils.js @@ -229,7 +229,7 @@ angular.module('copayApp.services') if (w) { root.setFocusedWallet(w); } else { - $location.path('/manage'); + $location.path('/createWallet'); } $timeout(function() { $rootScope.$digest() diff --git a/views/create.html b/views/create.html index 5c2535aab..592f47a36 100644 --- a/views/create.html +++ b/views/create.html @@ -57,7 +57,7 @@
- + Back diff --git a/views/createWallet.html b/views/createWallet.html new file mode 100644 index 000000000..11ef2e039 --- /dev/null +++ b/views/createWallet.html @@ -0,0 +1,26 @@ +
+

{{$root.title}}

+
+
+
+
+

Create a new Wallet

+ {{'Create' | translate }} +
+
+
+
+
+

Join an existent Wallet

+ {{'Join' | translate }} +
+
+
+
+
+

Import a Wallet to Copay

+ {{'Import wallet' | translate }} +
+
+
+
diff --git a/views/import.html b/views/import.html index 8b3ec1f33..d766c0494 100644 --- a/views/import.html +++ b/views/import.html @@ -76,7 +76,7 @@
- + Back diff --git a/views/includes/head.html b/views/includes/head.html index 1f8fdd24d..770b87836 100644 --- a/views/includes/head.html +++ b/views/includes/head.html @@ -22,11 +22,12 @@
-
- {{'Manage wallets' | translate }} -
diff --git a/views/includes/sidebar-mobile.html b/views/includes/sidebar-mobile.html index ce882f4d5..858326237 100644 --- a/views/includes/sidebar-mobile.html +++ b/views/includes/sidebar-mobile.html @@ -56,7 +56,8 @@
- {{'Add Wallet' | translate }} + {{'Create Wallet' | translate }}
@@ -88,8 +89,12 @@
  • - - {{'Manage wallets' | translate }} + + {{'Profile' | translate }} +
  • +
  • + + {{'Create Wallet' | translate }}
  • - + Back diff --git a/views/manage.html b/views/profile.html similarity index 71% rename from views/manage.html rename to views/profile.html index c952c85c9..35e535c6e 100644 --- a/views/manage.html +++ b/views/profile.html @@ -1,33 +1,32 @@ -
    +

    {{$root.title}}

    +
    -
    -
    -
    -

    Create a new Wallet

    - {{'Create' | translate }} -
    -
    -
    -
    -
    -

    Join an existent Wallet

    - {{'Join' | translate }} -
    -
    -
    -
    -
    -

    Import a Wallet to Copay

    - {{'Import wallet' | translate }} -
    +
    +
    +

    Backup Profile

    +

    It's important to backup your profile so that you can recover it in case of disaster. The backup will include all your profile's wallets

    + Backup profile + View profile backup +
    + +
    + Copy to clipboard +
    +
    + Copy this text as it is in a safe place (notepad or email) +
    +
    +
    -
    +

    Manage wallets

    @@ -66,29 +65,5 @@
    -
    - -
    - -
    -
    -
    -

    Backup Profile

    -

    It's important to backup your profile so that you can recover it in case of disaster. The backup will include all your profile's wallets

    - Backup profile - View profile backup -
    - -
    - Copy to clipboard -
    -
    - Copy this text as it is in a safe place (notepad or email) -
    -
    -
    -
    -
    +