use scope only - preferences (advanced)
This commit is contained in:
parent
fb56ad7505
commit
9163127dca
22 changed files with 238 additions and 305 deletions
|
|
@ -6,7 +6,7 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
|||
var fc = profileService.focusedClient;
|
||||
var c = fc.credentials;
|
||||
|
||||
this.init = function() {
|
||||
$scope.init = function() {
|
||||
var basePath = c.getBaseAddressDerivationPath();
|
||||
|
||||
$scope.walletName = c.walletName;
|
||||
|
|
@ -43,11 +43,7 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
|||
});
|
||||
};
|
||||
|
||||
this.sendAddrs = function() {
|
||||
var self = this;
|
||||
|
||||
self.loading = true;
|
||||
|
||||
$scope.sendAddrs = function() {
|
||||
function formatDate(ts) {
|
||||
var dateObj = new Date(ts * 1000);
|
||||
if (!dateObj) {
|
||||
|
|
@ -64,7 +60,6 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
|||
fc.getMainAddresses({
|
||||
doNotVerify: true
|
||||
}, function(err, addrs) {
|
||||
self.loading = false;
|
||||
if (err) {
|
||||
$log.warn(err);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue