Merge pull request #4898 from gabrielbazan7/ref/backupNeeded
remove to show backup needed modal automatically when clicking on receive view
This commit is contained in:
commit
384201841b
7 changed files with 8 additions and 45 deletions
|
|
@ -131,7 +131,6 @@ angular.module('copayApp.controllers').controller('backupController',
|
|||
}
|
||||
|
||||
profileService.setBackupFlag(wallet.credentials.walletId);
|
||||
profileService.setBackupNeededModalFlag(wallet.credentials.walletId);
|
||||
return cb();
|
||||
}, 1);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
|
||||
$scope.isCordova = platformInfo.isCordova;
|
||||
$scope.isNW = platformInfo.isNW;
|
||||
var showModalTimeout;
|
||||
|
||||
$scope.shareAddress = function(addr) {
|
||||
if ($scope.generatingAddress) return;
|
||||
|
|
@ -21,11 +20,6 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
$scope.generatingAddress = false;
|
||||
if (err) popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||
$scope.addr = addr;
|
||||
if ($scope.wallet.showBackupNeededModal) {
|
||||
showModalTimeout = $timeout(function() {
|
||||
$scope.openBackupNeededModal();
|
||||
}, 2000);
|
||||
}
|
||||
$timeout(function() {
|
||||
$scope.$apply();
|
||||
}, 10);
|
||||
|
|
@ -59,7 +53,6 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
$scope.close = function() {
|
||||
$scope.BackupNeededModal.hide();
|
||||
$scope.BackupNeededModal.remove();
|
||||
profileService.setBackupNeededModalFlag($scope.wallet.credentials.walletId);
|
||||
};
|
||||
|
||||
$scope.doBackup = function() {
|
||||
|
|
@ -84,16 +77,13 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
return;
|
||||
}
|
||||
$scope.wallet = wallet;
|
||||
$scope.generatingAddress = false;
|
||||
$log.debug('Wallet changed: ' + wallet.name);
|
||||
$timeout(function() {
|
||||
$scope.setAddress();
|
||||
$scope.setAddress(false);
|
||||
}, 100);
|
||||
});
|
||||
|
||||
$scope.$on("$ionicView.leave", function(event, data) {
|
||||
$timeout.cancel(showModalTimeout);
|
||||
});
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
$scope.wallets = profileService.getWallets();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue