Skip to content

Feat/240 update registration #203

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

Merged
merged 8 commits into from
Jul 29, 2025
Merged

Conversation

nmykhalkevch-exoft
Copy link
Collaborator

No description provided.

@@ -35,6 +35,10 @@
color: var(--stepper-invalid-step-color);
border: 1px solid var(--stepper-invalid-step-border-color);
}
&[disabled] {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add empty line above.

takeUntilDestroyed(this.destroyRef),
finalize(() => this.dialogRef.close())
)
.subscribe();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't we need some toast message.

[loading]="isSchemaResponseLoading()"
></p-button>
<p-button
type="button"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this type.

></p-button>
} @else if (schemaResponse()?.reviewsState === RevisionReviewStates.Unapproved) {
<p-button
type="button"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this type.

<div class="flex justify-content-end">
@if (schemaResponse()?.reviewsState === RevisionReviewStates.RevisionInProgress) {
<p-button
type="button"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove type

submit(): void {
this.actions.handleSchemaResponse(this.revisionId, SchemaActionTrigger.Submit).subscribe({
next: () => {
this.toastService.showSuccess('Justification review submitted successfully');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add translation

acceptChanges() {
this.actions.handleSchemaResponse(this.revisionId, SchemaActionTrigger.Approve).subscribe({
next: () => {
this.toastService.showSuccess('Changes accepted successfully');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add translation.

Comment on lines 16 to 18
justificationForm.controls['justification'].errors?.['required'] &&
(justificationForm.controls['justification'].touched || justificationForm.controls['justification'].dirty)
) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can it be moved to getter?

Comment on lines 82 to 83
@if (registrationData().reviewsState === RegistrationReviewStates.Accepted) {
@if (registrationData().revisionState === RevisionReviewStates.Approved) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we move it to getter?

Comment on lines 90 to 93
@if (
registrationData().revisionState === RevisionReviewStates.RevisionInProgress ||
registrationData().revisionState === RevisionReviewStates.Unapproved
) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we move it to getter?

@nmykhalkevch-exoft nmykhalkevch-exoft merged commit 080d32c into main Jul 29, 2025
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