From cd95c9058e11c5be09ad029031e87189ca9002a2 Mon Sep 17 00:00:00 2001 From: Alan Leung Date: Wed, 6 Nov 2024 16:11:32 -0700 Subject: [PATCH] Revert "PRIME-2803 reflect changes at CareConnect (#2614)" (#2627) This reverts commit 7f69811cd975e8033c5f43570672e0730527bc95. --- .../care-setting-page.component.html | 1 - .../care-setting-page.component.scss | 4 -- .../care-setting-page.component.ts | 44 +++---------------- .../prime-enrolment-access.component.html | 5 +-- .../prime-enrolment-access.component.scss | 5 --- 5 files changed, 8 insertions(+), 51 deletions(-) diff --git a/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.html b/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.html index c5f6020b47..0d10dabffc 100644 --- a/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.html +++ b/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.html @@ -58,7 +58,6 @@ class="radio-button" [value]="vendor.code"> {{ vendor.name }} - *Do not select CareConnect as the vendor without first contacting CareConnect at private.careconnect@phsa.ca diff --git a/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.scss b/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.scss index 6fda677fab..da7fb3aae0 100644 --- a/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.scss +++ b/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.scss @@ -7,7 +7,3 @@ .radio-button { margin: .25rem 0; } - -.warning-text { - color: red; -} diff --git a/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.ts b/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.ts index 47d24811c5..c170a35ae8 100644 --- a/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.ts +++ b/prime-angular-frontend/src/app/modules/site-registration/pages/care-setting-page/care-setting-page.component.ts @@ -3,7 +3,6 @@ import { ActivatedRoute, Router } from '@angular/router'; import { MatDialog } from '@angular/material/dialog'; import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'; -import { EMPTY } from 'rxjs'; import { noop, of } from 'rxjs'; import { exhaustMap, map, pairwise, startWith, tap } from 'rxjs/operators'; @@ -24,8 +23,6 @@ import { SiteFormStateService } from '@registration/shared/services/site-form-st import { CareSettingPageFormState } from './care-setting-page-form-state.class'; import { NoContent } from '@core/resources/abstract-resource'; import { IStep } from '@shared/components/progress-indicator/progress-indicator.component'; -import { DialogOptions } from '@shared/components/dialogs/dialog-options.model'; -import { ConfirmDialogComponent } from '@shared/components/dialogs/confirm-dialog/confirm-dialog.component'; @UntilDestroy() @Component({ @@ -173,42 +170,15 @@ export class CareSettingPageComponent extends AbstractCommunitySiteRegistrationP } protected submissionRequest(): NoContent { - - const sitePayload = this.siteFormStateService.json; - const request$ = this.siteResource.updateSite(sitePayload); - - - if (this.formState.json.careSettingCode === CareSettingEnum.PRIVATE_COMMUNITY_HEALTH_PRACTICE - && this.vendorConfig.find(v => v.code === this.formState.vendorCode.value).name === 'CareConnect' - ) { - const data: DialogOptions = { - title: 'Confirmation', - message: `I confirm I have contacted CareConnect.`, - actionText: 'Yes, I\'ve contacted CareConnect', - actionType: 'warn' - }; - - return this.dialog.open(ConfirmDialogComponent, { data }) - .afterClosed() - .pipe( - exhaustMap((confirmation: boolean) => { - if (confirmation) { - this.siteFormStateService.businessLicenceFormState.resetSiteId(); - return request$; - } - return EMPTY; - }) - ); - } else { - if (this.formState.json.careSettingCode === CareSettingEnum.PRIVATE_COMMUNITY_HEALTH_PRACTICE) { - this.siteFormStateService.businessLicenceFormState.resetSiteId(); - } - if (this.formState.json.careSettingCode !== CareSettingEnum.DEVICE_PROVIDER) { - this.siteFormStateService.deviceProviderFormState.clearIndividualDeviceProviders(); - } + if (this.formState.json.careSettingCode !== CareSettingEnum.DEVICE_PROVIDER) { + this.siteFormStateService.deviceProviderFormState.clearIndividualDeviceProviders(); + } + if (this.formState.json.careSettingCode === CareSettingEnum.PRIVATE_COMMUNITY_HEALTH_PRACTICE) { + this.siteFormStateService.businessLicenceFormState.resetSiteId(); } - return request$; + const payload = this.siteFormStateService.json; + return this.siteResource.updateSite(payload); } protected onSubmitFormIsValid(): void { diff --git a/prime-angular-frontend/src/app/shared/components/auth/prime-enrolment-access/prime-enrolment-access.component.html b/prime-angular-frontend/src/app/shared/components/auth/prime-enrolment-access/prime-enrolment-access.component.html index fa586022c4..9b8d25aba5 100644 --- a/prime-angular-frontend/src/app/shared/components/auth/prime-enrolment-access/prime-enrolment-access.component.html +++ b/prime-angular-frontend/src/app/shared/components/auth/prime-enrolment-access/prime-enrolment-access.component.html @@ -108,10 +108,7 @@
Site registration for:
- - Private community health practice -
*Before starting a new site registration with CareConnect as the vendor, contact - CareConnect at private.careconnect@phsa.ca -
+ - Private community health practice
- Community pharmacy
- Device providers
diff --git a/prime-angular-frontend/src/app/shared/components/auth/prime-enrolment-access/prime-enrolment-access.component.scss b/prime-angular-frontend/src/app/shared/components/auth/prime-enrolment-access/prime-enrolment-access.component.scss index 8969b21e46..da72af7371 100644 --- a/prime-angular-frontend/src/app/shared/components/auth/prime-enrolment-access/prime-enrolment-access.component.scss +++ b/prime-angular-frontend/src/app/shared/components/auth/prime-enrolment-access/prime-enrolment-access.component.scss @@ -150,8 +150,3 @@ a.tab-link:visited { .mat-select-value { color: #ffffff !important; } - -.warning-text { - color: orangered; - font-size: 1.25rem; -}