Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRIME-2647 Update Remote Access Removal Alert #2454

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,6 @@
</ng-container>
</app-page-subheader>

<app-alert *ngIf="cannotRequestRemoteAccess"
type="danger"
icon="warning"
class="mb-4">
<ng-container #alertContent
class="alert-content">
Only physicians and practicing nurse practitioners are permitted to access PharmaNet remotely,
and your remote user information will be deleted from your enrolment if you choose a different license type.
</ng-container>
</app-alert>

<div class="row">
<div class="col col-sm-10 py-3"
formArrayName="certifications">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,24 @@ export class RegulatoryComponent extends BaseEnrolmentProfilePage implements OnI
super.handleSubmission();
}
});
} else if (this.cannotRequestRemoteAccess) {
const data: DialogOptions = {
title: 'Remote Access Removal',
message: 'With this change you are no longer eligible to use remote access.' +
' Please notify the PharmaNet Administrator of your site and stop using the remote access.',
actionText: "Continue"
};

this.busy = this.dialog.open(ConfirmDialogComponent, { data })
.afterClosed()
.subscribe((result: boolean) => {
if (result) {
this.removeRemoteAccessData();
super.handleSubmission();
}
});
} else {

super.handleSubmission();
}
} else {
Expand Down
Loading