Merge pull request #4321 from JDonadio/bug/cancel-invitation

Fix cancel invitation
This commit is contained in:
Matias Alejo Garcia 2016-06-09 10:14:11 -03:00
commit 408e41c0e2
1 changed files with 9 additions and 5 deletions

View File

@ -13,7 +13,7 @@ angular.module('copayApp.controllers').controller('copayersController',
var confirm_msg = gettextCatalog.getString('Confirm'); var confirm_msg = gettextCatalog.getString('Confirm');
// Note that this is ONLY triggered when the page is opened // Note that this is ONLY triggered when the page is opened
// IF a wallet is incomplete and copay is at /#copayers // IF a wallet is incomplete and copay is at /#copayers
// and the user switch to an other complete wallet // and the user switch to an other complete wallet
// THIS IS NOT TRIGGERED. // THIS IS NOT TRIGGERED.
// //
@ -72,8 +72,10 @@ angular.module('copayApp.controllers').controller('copayersController',
go.walletHome(); go.walletHome();
$timeout(function() { $timeout(function() {
notification.success( notification.success(
gettextCatalog.getString('Success'), gettextCatalog.getString('Success'),
gettextCatalog.getString('The wallet "{{walletName}}" was deleted', {walletName: walletName}) gettextCatalog.getString('The wallet "{{walletName}}" was deleted', {
walletName: walletName
})
); );
}); });
} }
@ -87,7 +89,7 @@ angular.module('copayApp.controllers').controller('copayersController',
delete_msg, delete_msg,
function(buttonIndex) { function(buttonIndex) {
if (buttonIndex == 1) { if (buttonIndex == 1) {
_deleteWallet(); doDeleteWallet();
} }
}, },
confirm_msg, [accept_msg, cancel_msg] confirm_msg, [accept_msg, cancel_msg]
@ -109,7 +111,9 @@ angular.module('copayApp.controllers').controller('copayersController',
if (isAndroid || isWP) { if (isAndroid || isWP) {
window.ignoreMobilePause = true; window.ignoreMobilePause = true;
} }
var message = gettextCatalog.getString('Join my Copay wallet. Here is the invitation code: {{secret}} You can download Copay for your phone or desktop at https://copay.io', {secret: secret}); var message = gettextCatalog.getString('Join my Copay wallet. Here is the invitation code: {{secret}} You can download Copay for your phone or desktop at https://copay.io', {
secret: secret
});
window.plugins.socialsharing.share(message, gettextCatalog.getString('Invitation to share a Copay Wallet'), null, null); window.plugins.socialsharing.share(message, gettextCatalog.getString('Invitation to share a Copay Wallet'), null, null);
} }
}; };