From 8c100c89df0c4e20f5c7f93b6ecce205067961c5 Mon Sep 17 00:00:00 2001 From: weskubo-cgi Date: Thu, 19 May 2022 16:08:21 -0700 Subject: [PATCH 1/9] Initial UI implementaiton. --- .../hlth/hnweb/security/SecurityConfig.java | 3 +- .../src/components/template/TheNavBar.vue | 5 +- frontend/src/router/index.js | 15 ++ frontend/src/services/BaseService.js | 2 + frontend/src/services/GroupMemberService.js | 3 + .../maintenance/CoverageMaintenanceHome.vue | 32 ++-- .../maintenance/ReinstateOverAgeDependent.vue | 179 ++++++++++++++++++ 7 files changed, 226 insertions(+), 13 deletions(-) create mode 100644 frontend/src/views/coverage/maintenance/ReinstateOverAgeDependent.vue diff --git a/backend/src/main/java/ca/bc/gov/hlth/hnweb/security/SecurityConfig.java b/backend/src/main/java/ca/bc/gov/hlth/hnweb/security/SecurityConfig.java index cfee2b10..3469fe49 100644 --- a/backend/src/main/java/ca/bc/gov/hlth/hnweb/security/SecurityConfig.java +++ b/backend/src/main/java/ca/bc/gov/hlth/hnweb/security/SecurityConfig.java @@ -69,7 +69,8 @@ protected void configure(HttpSecurity http) throws Exception { .mvcMatchers(HttpMethod.POST, "/group-member/add-group-member").hasRole("AddGroupMember") .mvcMatchers(HttpMethod.POST, "/group-member/cancel-dependent").hasRole("CancelDependent") .mvcMatchers(HttpMethod.POST, "/group-member/cancel-group-member").hasRole("CancelGroupMember") - .mvcMatchers(HttpMethod.POST, "/group-member/update-number-and-dept").hasRole("UpdateNumberAndDept") + .mvcMatchers(HttpMethod.POST, "/group-member/update-number-and-dept").hasRole("UpdateNumberAndDept") + .mvcMatchers(HttpMethod.POST, "/group-member/reinstate-over-age-dependent").hasRole("ReinstateOverAgeDependent") .mvcMatchers(HttpMethod.POST, "/msp-contracts/get-contract-periods").hasRole("GetContractPeriods") .mvcMatchers(HttpMethod.POST, "/msp-contracts/update-contract-address").hasRole("UpdateContractAddress") .mvcMatchers(HttpMethod.POST, "/msp-contracts/inquire-contract").hasAnyRole("ContractInquiry", "GetGroupMembersContractAddress") //inquire-contract endpoint will require this multi role as it is used by both R40 and R37 transactions diff --git a/frontend/src/components/template/TheNavBar.vue b/frontend/src/components/template/TheNavBar.vue index c5f8ddc1..d9e46364 100644 --- a/frontend/src/components/template/TheNavBar.vue +++ b/frontend/src/components/template/TheNavBar.vue @@ -22,6 +22,9 @@ From de17df6de8bc0071a14db834831acc4750caab11 Mon Sep 17 00:00:00 2001 From: weskubo-cgi Date: Thu, 4 Aug 2022 15:13:41 -0700 Subject: [PATCH 9/9] Removed erroneous function. --- frontend/src/services/GroupMemberService.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/frontend/src/services/GroupMemberService.js b/frontend/src/services/GroupMemberService.js index b9a8e493..a269c07f 100644 --- a/frontend/src/services/GroupMemberService.js +++ b/frontend/src/services/GroupMemberService.js @@ -16,7 +16,4 @@ export default { cancelDependent(request) { return apiRequest().then((axiosInstance) => axiosInstance.post(resources.groupMember.cancelDependent, request)) }, - reinstateOverAgeDependent(request) { - return apiRequest().then((axiosInstance) => axiosInstance.post(resources.groupMember.cancelDependent, request)) - }, }