From b6c7297417a10ef3e00db510a9decf58e0ed6bd8 Mon Sep 17 00:00:00 2001 From: AnumehaSrivastava05 Date: Fri, 18 Mar 2022 10:59:02 -0600 Subject: [PATCH 1/5] 6050: R50a and R50c enhancements 1. Added new immigration codes 2. Added new confirmation page 3. Added button --- .../enrollment/RegistrationConfirmation.vue | 8 ++++ .../RegistrationConfirmationWithPHN.vue | 40 +++++++++++++++++++ frontend/src/util/constants.js | 2 + .../enrollment/AddVisaResidentWithPHN.vue | 6 +-- 4 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 frontend/src/components/coverage/enrollment/RegistrationConfirmationWithPHN.vue diff --git a/frontend/src/components/coverage/enrollment/RegistrationConfirmation.vue b/frontend/src/components/coverage/enrollment/RegistrationConfirmation.vue index 04e4d493..538da363 100644 --- a/frontend/src/components/coverage/enrollment/RegistrationConfirmation.vue +++ b/frontend/src/components/coverage/enrollment/RegistrationConfirmation.vue @@ -10,6 +10,7 @@ + Add Another Permit Holder Without PHN @@ -29,5 +30,12 @@ export default { return formatPersonName(this.resident) }, }, + + methods: { + goToAddVisaResidentWithoutPHN() { + this.$router.push('/coverage/enrollment/addStudyPermitHolderWithoutPHN') + this.$router.go() + }, + }, } diff --git a/frontend/src/components/coverage/enrollment/RegistrationConfirmationWithPHN.vue b/frontend/src/components/coverage/enrollment/RegistrationConfirmationWithPHN.vue new file mode 100644 index 00000000..872e7f0b --- /dev/null +++ b/frontend/src/components/coverage/enrollment/RegistrationConfirmationWithPHN.vue @@ -0,0 +1,40 @@ + + + diff --git a/frontend/src/util/constants.js b/frontend/src/util/constants.js index 1fbfb658..2fd4a870 100644 --- a/frontend/src/util/constants.js +++ b/frontend/src/util/constants.js @@ -40,6 +40,8 @@ export const PROVINCES = [ export const IMMIGRATION_CODES = [ { text: 'Select', value: '' }, { text: 'Student Authorization', value: 'S' }, + { text: 'Employment Authorization', value: 'W' }, + { text: 'Diplomat', value: 'D' }, ] // Prior Residence drop down options diff --git a/frontend/src/views/coverage/enrollment/AddVisaResidentWithPHN.vue b/frontend/src/views/coverage/enrollment/AddVisaResidentWithPHN.vue index 6b3e9c8e..8b0784b2 100644 --- a/frontend/src/views/coverage/enrollment/AddVisaResidentWithPHN.vue +++ b/frontend/src/views/coverage/enrollment/AddVisaResidentWithPHN.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/util/constants.js b/frontend/src/util/constants.js index 2fd4a870..8822c640 100644 --- a/frontend/src/util/constants.js +++ b/frontend/src/util/constants.js @@ -41,7 +41,6 @@ export const IMMIGRATION_CODES = [ { text: 'Select', value: '' }, { text: 'Student Authorization', value: 'S' }, { text: 'Employment Authorization', value: 'W' }, - { text: 'Diplomat', value: 'D' }, ] // Prior Residence drop down options diff --git a/frontend/src/views/coverage/enrollment/AddVisaResidentWithPHN.vue b/frontend/src/views/coverage/enrollment/AddVisaResidentWithPHN.vue index 8b0784b2..6b3e9c8e 100644 --- a/frontend/src/views/coverage/enrollment/AddVisaResidentWithPHN.vue +++ b/frontend/src/views/coverage/enrollment/AddVisaResidentWithPHN.vue @@ -1,7 +1,7 @@ From 80bcb853ba3b9d11d4c59f8e1e3b077433a0133a Mon Sep 17 00:00:00 2001 From: AnumehaSrivastava05 Date: Tue, 22 Mar 2022 12:30:49 -0600 Subject: [PATCH 5/5] Added missing parenthesis --- .../coverage/enrollment/RegistrationConfirmation.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/coverage/enrollment/RegistrationConfirmation.vue b/frontend/src/components/coverage/enrollment/RegistrationConfirmation.vue index f691a3e1..72f6c301 100644 --- a/frontend/src/components/coverage/enrollment/RegistrationConfirmation.vue +++ b/frontend/src/components/coverage/enrollment/RegistrationConfirmation.vue @@ -40,7 +40,9 @@ export default { this.$store.commit('alert/dismissAlert') this.$router.replace({ query: null }) this.$router.push('/coverage/enrollment/addStudyPermitHolderWithoutPHN') - } else this.$router.go() + } else { + this.$router.go() + } }, }, }