Improve addressbook for mobile
This commit is contained in:
parent
f3d12f5a14
commit
ee33526129
6 changed files with 22 additions and 15 deletions
|
|
@ -253,12 +253,6 @@ ul.copayer-list img {
|
|||
color: #A5B2BF;
|
||||
}
|
||||
|
||||
.addresses .list-addr contact {
|
||||
margin-left: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
a.missing-copayers {
|
||||
bottom: -34px;
|
||||
text-align: center;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('indexController', function($rootScope, $scope, $log, $filter, $timeout, lodash, go, profileService, configService, isCordova, rateService, storageService, addressService, gettext, gettextCatalog, amMoment, nodeWebkit, addonManager, feeService, isChromeApp, bwsError, txFormatService, uxLanguage, $state, glideraService, isMobile) {
|
||||
angular.module('copayApp.controllers').controller('indexController', function($rootScope, $scope, $log, $filter, $timeout, lodash, go, profileService, configService, isCordova, rateService, storageService, addressService, gettext, gettextCatalog, amMoment, nodeWebkit, addonManager, feeService, isChromeApp, bwsError, txFormatService, uxLanguage, $state, glideraService, isMobile, addressbookService) {
|
||||
var self = this;
|
||||
var SOFT_CONFIRMATION_LIMIT = 12;
|
||||
self.isCordova = isCordova;
|
||||
|
|
@ -111,6 +111,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
self.copayers = [];
|
||||
self.updateColor();
|
||||
self.updateAlias();
|
||||
self.setAddressbook();
|
||||
|
||||
self.initGlidera();
|
||||
|
||||
|
|
@ -1007,12 +1008,26 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
|
||||
};
|
||||
|
||||
self.setAddressbook = function() {
|
||||
addressbookService.list(function(err, ab) {
|
||||
if (err) {
|
||||
$log.error('Error getting the addressbook');
|
||||
return;
|
||||
}
|
||||
self.addressbook = ab;
|
||||
});
|
||||
};
|
||||
|
||||
$rootScope.$on('Local/ClearHistory', function(event) {
|
||||
$log.debug('The wallet transaction history has been deleted');
|
||||
self.txHistory = [];
|
||||
self.updateHistory();
|
||||
});
|
||||
|
||||
$rootScope.$on('Local/AddressbookUpdated', function(event) {
|
||||
self.setAddressbook();
|
||||
});
|
||||
|
||||
// UX event handlers
|
||||
$rootScope.$on('Local/ColorUpdated', function(event) {
|
||||
self.updateColor();
|
||||
|
|
|
|||
|
|
@ -272,6 +272,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
|
||||
modalInstance.result.finally(function() {
|
||||
$rootScope.modalOpened = false;
|
||||
$rootScope.$emit('Local/AddressbookUpdated');
|
||||
disableCloseModal();
|
||||
var m = angular.element(document.getElementsByClassName('reveal-modal'));
|
||||
m.addClass(animationService.modalAnimated.slideOutDown);
|
||||
|
|
|
|||
|
|
@ -174,10 +174,6 @@ angular.module('copayApp.directives')
|
|||
element.append(addr);
|
||||
}
|
||||
});
|
||||
|
||||
element.bind('click', function() {
|
||||
selectText(element[0]);
|
||||
});
|
||||
}
|
||||
};
|
||||
}])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue