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:
Javier Donadío 2016-11-15 17:00:19 -03:00 committed by GitHub
commit a25f881cf2
2 changed files with 1 additions and 4 deletions

View File

@ -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;

View File

@ -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>