Skip to content

Commit

Permalink
Limit participation reached (#553)
Browse files Browse the repository at this point in the history
Co-authored-by: haythem <[email protected]>
  • Loading branch information
kachourihassen and hrzig authored Sep 25, 2023
1 parent b460423 commit 84ef181
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/app/campaigns/components/participer/participer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,15 @@ export class ParticiperComponent implements OnInit, AfterContentChecked {
this.error = 'wallet not found';
this.success = '';
this.loadingButton = false;
} else if (error.error.code === 'Limit participation reached'){
this.error = 'Limit_participation_reached';
this.success = '';
this.loadingButton = false;
this.router.navigate([], {
queryParams: {
errorMessage: 'error'
}
});
}
} else {
this.error = 'error-message';
Expand Down Expand Up @@ -1738,6 +1747,11 @@ export class ParticiperComponent implements OnInit, AfterContentChecked {
this.error = 'Lien_déjà_envoyé';
this.success = '';
this.loadingButton = false;
}
else if (err.error.text === '{error:"Limit participation reached"}') {
this.error = 'Limit_participation_reached';
this.success = '';
this.loadingButton = false;
} else if (err.error.text === '{error:"account not linked"}') {
this.connectValue = 'facebook';
this.errorResponse = 'facebook';
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@
"invite_friends_notif": "Invite your friends",
"problem_faq": "problem ? Consult the FAQ",
"link_already_exist": "This link already exist please try with another one!",
"Limit_participation_reached":"Limit participation reached",
"oracle_not_selected_error": "You are posting a link with a social media that is not supported by this campaign, please check your link before applying!",
"welcome_title": "Welcome to Post Farming",
"more_info": "More info about Ad Pool",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"remaining_budget_notification":"Votre budget restant est actuellement de",
"Aide.L’Open_Source": "L’Open Source",
"copieWallet.copier": "Copier",
"Limit_participation_reached":"Limite de participation atteinte",
"notification_pools_retireive_now_budget": "Vous pouvez maintenant le récupérer",
"notification_pools_retreive_waiting_budget":"Vous pouvez le récupérer dans",
"notification_pools_retreive_waiting_budget_days": "Jours",
Expand Down

0 comments on commit 84ef181

Please sign in to comment.