diff --git a/www/i18n/locale-en-GB.json b/www/i18n/locale-en-GB.json index 67fefa663a19988c768ec97584f264ed3332a0ba..aa553025686b17fe79a8dc63e0c2642c99d880f6 100644 --- a/www/i18n/locale-en-GB.json +++ b/www/i18n/locale-en-GB.json @@ -727,6 +727,7 @@ "LOAD_NEWCOMERS_FAILED": "Unable to load new members.", "LOAD_PENDING_FAILED": "Unable to load pending registrations.", "ONLY_MEMBER_CAN_EXECUTE_THIS_ACTION": "You must <b>be a member</b> in order to perform this action.", + "ONLY_MEMBER_OR_WAS_MEMBER_CAN_EXECUTE_THIS_ACTION": "You must <b>be a member (or old member)</b> in order to perform this action.", "ONLY_SELF_CAN_EXECUTE_THIS_ACTION": "You must have <b>published your identity</b> in order to perform this action.", "GET_BLOCK_FAILED": "Error while getting block", "INVALID_BLOCK_HASH": "Block not found (incorrect hash)", diff --git a/www/i18n/locale-en.json b/www/i18n/locale-en.json index b5c2347a72c90e4ab07e6dd2c2d92b6a67c1b214..63f29844351e379727709d1f1a234a4f26d6da19 100644 --- a/www/i18n/locale-en.json +++ b/www/i18n/locale-en.json @@ -727,6 +727,7 @@ "LOAD_NEWCOMERS_FAILED": "Unable to load new members.", "LOAD_PENDING_FAILED": "Unable to load pending registrations.", "ONLY_MEMBER_CAN_EXECUTE_THIS_ACTION": "You must <b>be a member</b> in order to perform this action.", + "ONLY_MEMBER_OR_WAS_MEMBER_CAN_EXECUTE_THIS_ACTION": "You must <b>be a member (or old member)</b> in order to perform this action.", "ONLY_SELF_CAN_EXECUTE_THIS_ACTION": "You must have <b>published your identity</b> in order to perform this action.", "GET_BLOCK_FAILED": "Error while getting block", "INVALID_BLOCK_HASH": "Block not found (incorrect hash)", diff --git a/www/i18n/locale-fr-FR.json b/www/i18n/locale-fr-FR.json index 0534293ba8ad5b60cf5a8741afca176a9d32c4c4..e5a8917ade699b20515fc71afd7777986caa6b47 100644 --- a/www/i18n/locale-fr-FR.json +++ b/www/i18n/locale-fr-FR.json @@ -727,6 +727,7 @@ "LOAD_NEWCOMERS_FAILED": "Échec du chargement des nouveaux membres.", "LOAD_PENDING_FAILED": "Échec du chargement des inscriptions en attente.", "ONLY_MEMBER_CAN_EXECUTE_THIS_ACTION": "Vous devez <b>être membre</b> pour pouvoir effectuer cette action.", + "ONLY_MEMBER_OR_WAS_MEMBER_CAN_EXECUTE_THIS_ACTION": "Vous devez <b>être membre (ou ancien membre)</b> pour pouvoir effectuer cette action.", "ONLY_SELF_CAN_EXECUTE_THIS_ACTION": "Vous devez avoir <b>publié votre identité</b> pour pouvoir effectuer cette action.", "GET_BLOCK_FAILED": "Échec de la récupération du bloc", "INVALID_BLOCK_HASH": "Bloc non trouvé (hash différent)", diff --git a/www/js/controllers/wallet-controllers.js b/www/js/controllers/wallet-controllers.js index b93aa02d54102ceac70d5b52449d3b1cecbd82bc..0a5c30f8e425b90fc8f017f53063f26a31421365 100644 --- a/www/js/controllers/wallet-controllers.js +++ b/www/js/controllers/wallet-controllers.js @@ -337,7 +337,7 @@ function WalletController($scope, $rootScope, $q, $ionicPopup, $timeout, $state, */ $scope.renewMembership = function(confirm) { - if (!$scope.formData.isMember && !$scope.formData.requirements.wasMember) { + if (!wallet.isMember() && !$scope.formData.requirements.wasMember) { return UIUtils.alert.error("ERROR.ONLY_MEMBER_CAN_EXECUTE_THIS_ACTION"); } if (!confirm && !$scope.formData.requirements.needRenew) {