diff --git a/public/views/amount.html b/public/views/amount.html index 20a42e060..10ee69f7e 100644 --- a/public/views/amount.html +++ b/public/views/amount.html @@ -41,7 +41,7 @@
+ ng-show="amount > 0 || alternativeResult > 0 || amountResult > 0" ng-click="finish()">
diff --git a/public/views/confirm.html b/public/views/confirm.html index a054c73e4..8be1797eb 100644 --- a/public/views/confirm.html +++ b/public/views/confirm.html @@ -51,7 +51,7 @@
- + - + diff --git a/public/views/includes/acceptSlide.html b/public/views/includes/acceptSlide.html index e0afe811f..95e57ce8d 100644 --- a/public/views/includes/acceptSlide.html +++ b/public/views/includes/acceptSlide.html @@ -1,7 +1,9 @@ + - - -

Slide to accept

+
+ + Slide to accept +
diff --git a/public/views/tab-settings.html b/public/views/tab-settings.html index 475ab76d0..6c5add5f2 100644 --- a/public/views/tab-settings.html +++ b/public/views/tab-settings.html @@ -50,21 +50,6 @@ -
-
Notifications
- - - Enable push notifications - - -
-
Push notifications for Copay are currently disabled. Enable them in the Settings app.
- -
-
-
Exchanges
@@ -84,6 +69,24 @@ Use Unconfirmed Funds +
+
Notifications
+ + + Enable push notifications + +
+ +
+
Notifications
+
+ Push notifications for Copay are currently disabled. Enable them in the Settings app. +
+ + Open Settings app + +
+
Wallets Preferences
20; - var message = gettextCatalog.getString('Sending {{fee}} from your {{name}} wallet', { - fee: $scope.fee, + var message = gettextCatalog.getString('Sending {{amountStr}} from your {{name}} wallet', { + amountStr: $scope.amountStr, name: wallet.name }); var okText = gettextCatalog.getString('Confirm'); @@ -307,7 +310,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( $state.go('tabs.send'); }; - $scope.$on("$ionicView.enter", function(event, data){ + $scope.$on("$ionicView.enter", function(event, data) { initConfirm(); }); }); diff --git a/src/js/controllers/modals/txStatus.js b/src/js/controllers/modals/txStatus.js index ceb4065f8..1a736829d 100644 --- a/src/js/controllers/modals/txStatus.js +++ b/src/js/controllers/modals/txStatus.js @@ -16,6 +16,7 @@ angular.module('copayApp.controllers').controller('txStatusController', function disableAnimate: true, disableBack: true }); + $ionicHistory.removeBackView(); $state.go('tabs.send.addressbook', { fromSendTab: true, addressbookEntry: addressbookEntry diff --git a/src/js/controllers/tab-receive.js b/src/js/controllers/tab-receive.js index 26e71e57c..558f86d0d 100644 --- a/src/js/controllers/tab-receive.js +++ b/src/js/controllers/tab-receive.js @@ -5,10 +5,6 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi $scope.isCordova = platformInfo.isCordova; $scope.isNW = platformInfo.isNW; - $scope.wallets = profileService.getWallets({ - onlyComplete: true - }); - $scope.checkTips = function(force) { storageService.getReceiveTipsAccepted(function(err, accepted) { if (err) $log.warn(err); @@ -25,16 +21,6 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi }); }; - $scope.$on('Wallet/Changed', function(event, wallet) { - if (!wallet) { - $log.debug('No wallet provided'); - return; - } - $scope.wallet = wallet; - $log.debug('Wallet changed: ' + wallet.name); - $scope.setAddress(); - }); - $scope.shareAddress = function(addr) { if ($scope.generatingAddress) return; if ($scope.isCordova) { @@ -61,5 +47,19 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi }, 1); }; - if (!$scope.isCordova) $scope.checkTips(); + $scope.$on("$ionicView.enter", function(event, data) { + if (!$scope.isCordova) $scope.checkTips(); + $scope.wallets = profileService.getWallets({ + onlyComplete: true + }); + $scope.$on('Wallet/Changed', function(event, wallet) { + if (!wallet) { + $log.debug('No wallet provided'); + return; + } + $scope.wallet = wallet; + $log.debug('Wallet changed: ' + wallet.name); + $scope.setAddress(); + }); + }); }); diff --git a/src/js/services/walletService.js b/src/js/services/walletService.js index 0c9d00583..4e9c8a415 100644 --- a/src/js/services/walletService.js +++ b/src/js/services/walletService.js @@ -189,7 +189,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim function cacheBalance(wallet, balance) { if (!balance) return; - var config = configService.getSync().wallet.settings; + var config = configService.getSync().wallet; var cache = wallet.cachedStatus; @@ -197,7 +197,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim cache.balanceByAddress = balance.byAddress; // Spend unconfirmed funds - if (cache.spendUnconfirmed) { + if (config.spendUnconfirmed) { cache.totalBalanceSat = balance.totalAmount; cache.lockedBalanceSat = balance.lockedAmount; cache.availableBalanceSat = balance.availableAmount; @@ -212,9 +212,9 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim } // Selected unit - cache.unitToSatoshi = config.unitToSatoshi; + cache.unitToSatoshi = config.settings.unitToSatoshi; cache.satToUnit = 1 / cache.unitToSatoshi; - cache.unitName = config.unitName; + cache.unitName = config.settings.unitName; //STR cache.totalBalanceStr = txFormatService.formatAmount(cache.totalBalanceSat) + ' ' + cache.unitName; @@ -227,8 +227,8 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim cache.pendingAmountStr = null; } - cache.alternativeName = config.alternativeName; - cache.alternativeIsoCode = config.alternativeIsoCode; + cache.alternativeName = config.settings.alternativeName; + cache.alternativeIsoCode = config.settings.alternativeIsoCode; rateService.whenAvailable(function() { diff --git a/src/sass/views/confirm.scss b/src/sass/views/confirm.scss index 0e5eb761a..1a739bba1 100644 --- a/src/sass/views/confirm.scss +++ b/src/sass/views/confirm.scss @@ -12,6 +12,16 @@ bottom: 49px; width: 100%; height: 100px; - background-color: #f5f5f5; - } + background-color: #647CE8; + color: #ffffff; + font-size: 25px; + text-align: center; + padding-top: 34px; + line-height: 32px; + } + .accept-slide i { + float: right; + font-size: 32px; + margin-right: 20px; + } }