-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
…to feat/240-update-registration
…to feat/240-update-registration
@@ -35,6 +35,10 @@ | |||
color: var(--stepper-invalid-step-color); | |||
border: 1px solid var(--stepper-invalid-step-border-color); | |||
} | |||
&[disabled] { |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add translation.
justificationForm.controls['justification'].errors?.['required'] && | ||
(justificationForm.controls['justification'].touched || justificationForm.controls['justification'].dirty) | ||
) { |
There was a problem hiding this comment.
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?
@if (registrationData().reviewsState === RegistrationReviewStates.Accepted) { | ||
@if (registrationData().revisionState === RevisionReviewStates.Approved) { |
There was a problem hiding this comment.
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?
@if ( | ||
registrationData().revisionState === RevisionReviewStates.RevisionInProgress || | ||
registrationData().revisionState === RevisionReviewStates.Unapproved | ||
) { |
There was a problem hiding this comment.
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?
No description provided.