be able to add contacts with a chosen currency and display it properly in the send tab
This commit is contained in:
parent
4fa86cb178
commit
f4b90ae2dd
3 changed files with 21 additions and 14 deletions
|
|
@ -1,13 +1,20 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('addressbookAddController', function($scope, $state, $stateParams, $timeout, $ionicHistory, gettextCatalog, addressbookService, popupService) {
|
||||
angular.module('copayApp.controllers').controller('addressbookAddController', function($scope, $state, $stateParams, $timeout, $ionicHistory, gettextCatalog, addressbookService, popupService, configService) {
|
||||
|
||||
var config = configService.getSync();
|
||||
var defaults = configService.getDefaults();
|
||||
|
||||
$scope.bitcoinAlias = (config.bitcoinAlias || defaults.bitcoinAlias).toUpperCase();
|
||||
$scope.bitcoinCashAlias = (config.bitcoinCashAlias || defaults.bitcoinCashAlias).toUpperCase();
|
||||
|
||||
$scope.fromSendTab = $stateParams.fromSendTab;
|
||||
|
||||
$scope.addressbookEntry = {
|
||||
'address': $stateParams.addressbookEntry || '',
|
||||
'name': '',
|
||||
'email': ''
|
||||
'email': '',
|
||||
'coin': 'btc'
|
||||
};
|
||||
|
||||
$scope.onQrCodeScannedAddressBook = function(data, addressbookForm) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue