Skip to content

feat: add or edit beneficiaries#24

Open
ksraj123 wants to merge 2 commits into
openMF:masterfrom
ksraj123:feat-add-edit-beneficiary
Open

feat: add or edit beneficiaries#24
ksraj123 wants to merge 2 commits into
openMF:masterfrom
ksraj123:feat-add-edit-beneficiary

Conversation

@ksraj123

@ksraj123 ksraj123 commented Jan 9, 2021

Copy link
Copy Markdown
Contributor

Reference #20

Please share feedback and suggestions. Thanks

Screenshots

Adding a new beneficiary - if successfully added then automatically redirects to beneficiaries page

add_bene_1

Editing and existing beneficiary - Only name and transfer limit of already added beneficiary can be edited - in accordance with the API - relevant error messages - redirects to beneficiaries page if update is successful.
add_bene_2

{
path: 'beneficiaries/create',
component: BeneficiariesFormComponent,
data: {title: extract('Add Beneficiary')}, // think of a way to use this

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ksraj123 use of this object is intended for the iteration to achieve internationalization (multi language support).

});
}

submitBeneficiaryForm() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ksraj123 submitBeneficiaryForm() function has more than one exit point, let's refactor it to achieve cleaner code.

}

addBeneficiary(beneficiary: BeneficiariesForm) {
beneficiary.locale = "en_GB";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a comment, stating the reason for hardcoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants