Fix fee levels when there is no wallet and hide Glidera if wallet is not complete (#4068)
* fix cordova is not define * Remove focused client from fee level service * remove wallet should be complete in route.js for global preferences routes * get network of the focused client in getCurrentFeeValue function * refactor * do not show testnet fee levels in preference global and refactors * bump new version bwc v2.2.1
This commit is contained in:
parent
975bd99834
commit
b720821d4e
8 changed files with 34 additions and 37 deletions
|
|
@ -295,8 +295,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
self.updateAll = function(opts, initStatusHash, tries) {
|
||||
tries = tries || 0;
|
||||
opts = opts || {};
|
||||
var fc = profileService.focusedClient;
|
||||
if (!fc) return;
|
||||
|
||||
var walletId = profileService.focusedClient.credentials.walletId
|
||||
var walletId = fc.credentials.walletId
|
||||
|
||||
if (opts.untilItChanges && lodash.isUndefined(initStatusHash)) {
|
||||
initStatusHash = _walletStatusHash();
|
||||
|
|
@ -321,10 +323,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
}
|
||||
};
|
||||
|
||||
var fc = profileService.focusedClient;
|
||||
if (!fc) return;
|
||||
|
||||
|
||||
// If not untilItChanges...trigger history update now
|
||||
if (opts.triggerTxUpdate && !opts.untilItChanges) {
|
||||
$timeout(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue