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
2 changed files with 1 additions and 4 deletions
|
|
@ -298,9 +298,6 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
$scope.walletId = data.stateParams.walletId;
|
$scope.walletId = data.stateParams.walletId;
|
||||||
storageService.getBackupFlag($scope.walletId, function(err, flag) {
|
|
||||||
$scope.isBackedUp = flag ? true : false;
|
|
||||||
});
|
|
||||||
$scope.wallet = profileService.getWallet($scope.walletId);
|
$scope.wallet = profileService.getWallet($scope.walletId);
|
||||||
$scope.requiresMultipleSignatures = $scope.wallet.credentials.m > 1;
|
$scope.requiresMultipleSignatures = $scope.wallet.credentials.m > 1;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- oh -->
|
</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
|
Wallet not backed up
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue