mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #5042 from cmgustavo/bug/backup-needed-wallet-details
Use needsBackup flag inside the wallet instead check storage
This commit is contained in:
commit
a25f881cf2
|
@ -298,9 +298,6 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
|||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
$scope.walletId = data.stateParams.walletId;
|
||||
storageService.getBackupFlag($scope.walletId, function(err, flag) {
|
||||
$scope.isBackedUp = flag ? true : false;
|
||||
});
|
||||
$scope.wallet = profileService.getWallet($scope.walletId);
|
||||
$scope.requiresMultipleSignatures = $scope.wallet.credentials.m > 1;
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@
|
|||
</div>
|
||||
</div> <!-- oh -->
|
||||
|
||||
<a class="wallet-not-backed-up-warning" ng-if="!isBackedUp" ui-sref="tabs.wallet.backupWarning({from: 'tabs.wallet'})">
|
||||
<a class="wallet-not-backed-up-warning" ng-if="wallet.needsBackup" ui-sref="tabs.wallet.backupWarning({from: 'tabs.wallet'})">
|
||||
Wallet not backed up
|
||||
</a>
|
||||
|
||||
|
|
Loading…
Reference in New Issue