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

@ -73,7 +73,9 @@ angular.module('copayApp.controllers').controller('copayersController',
$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);
} }
}; };