be able to add contacts with a chosen currency and display it properly in the send tab

This commit is contained in:
Kadir Sekha 2017-11-02 15:40:21 +09:00
commit f4b90ae2dd
3 changed files with 21 additions and 14 deletions

View file

@ -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) {