Ref route.js. Fix tabs-scan title. Adds title to Wallet details

This commit is contained in:
Gustavo Maximiliano Cortez 2016-08-19 14:14:21 -03:00
commit c7c051efba
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
11 changed files with 322 additions and 341 deletions

View file

@ -187,7 +187,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
var _amount = evaluate(format($scope.amount));
var amount = $scope.showAlternativeAmount ? fromFiat(_amount).toFixed(unitDecimals) : _amount.toFixed(unitDecimals);
$state.transitionTo('confirm', {
$state.transitionTo('send.confirm', {
toAmount:amount * unitToSatoshi,
toAddress: $scope.toAddress,
toName: $scope.toName,

View file

@ -68,7 +68,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
return;
}
$log.debug('Got toAddress:' + addr + ' | ' + item.label)
return $state.transitionTo('amount', { toAddress: addr, toName: item.label})
return $state.transitionTo('send.amount', { toAddress: addr, toName: item.label})
});
};

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('walletDetailsController', function($scope, $rootScope, $interval, $timeout, $filter, $log, $ionicModal, $ionicPopover, $state, $stateParams, bwcError, profileService, lodash, configService, gettext, gettextCatalog, platformInfo, walletService) {
angular.module('copayApp.controllers').controller('walletDetailsController', function($scope, $rootScope, $interval, $timeout, $filter, $log, $ionicModal, $ionicPopover, $ionicNavBarDelegate, $state, $stateParams, bwcError, profileService, lodash, configService, gettext, gettextCatalog, platformInfo, walletService) {
var isCordova = platformInfo.isCordova;
var isWP = platformInfo.isWP;
@ -134,6 +134,8 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
$scope.requiresMultipleSignatures = wallet.credentials.m > 1;
$scope.newTx = false;
$ionicNavBarDelegate.title(wallet.name);
$scope.updateAll();
};