rm go
This commit is contained in:
parent
aa372ea618
commit
a8cf875def
22 changed files with 53 additions and 1392 deletions
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('preferencesInformation',
|
||||
function($scope, $log, $timeout, platformInfo, gettextCatalog, lodash, profileService, configService, go, $stateParams) {
|
||||
function($scope, $log, $timeout, platformInfo, gettextCatalog, lodash, profileService, configService, $stateParams, walletService, $state) {
|
||||
var base = 'xpub';
|
||||
var wallet = profileService.getWallet($stateParams.walletId);
|
||||
var walletId = wallet.id;
|
||||
|
|
@ -104,7 +104,7 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
|||
opts.colorFor[walletId] = color;
|
||||
|
||||
configService.set(opts, function(err) {
|
||||
go.walletHome();
|
||||
$state.go('tabs.home');
|
||||
if (err) $log.warn(err);
|
||||
$scope.$emit('Local/ColorUpdated');
|
||||
});
|
||||
|
|
@ -121,4 +121,11 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
|||
}
|
||||
};
|
||||
|
||||
$scope.scan = function() {
|
||||
walletService.startScan(wallet);
|
||||
$state.go('tabs.home');
|
||||
};
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue