Skip to content

Commit a13ece5

Browse files
Fix/registry bug (#415)
* fix(registration): fixed 594 * fix(registration-bugs): fixed some registrations bugs * fix(registration): fixed registrations fr project * fix(registration): remove useless font class * fix(subjects): refactor subjects for project and registration * fix(subjects): fixed subjects search * fix(bugs): fixed 426 * fix(bugs): add some area labels * fix(bugs): files upload limits * fix(registration): show data for admin
1 parent 824a172 commit a13ece5

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/app/features/registries/components/custom-step/custom-step.component.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,7 @@ <h3 class="mb-2">
139139
}
140140

141141
@case (FieldType.Text) {
142-
<input
143-
[formControlName]="q.responseKey!"
144-
type="text"
145-
class="w-full"
146-
[placeholder]="q.exampleText"
147-
pInputText
148-
/>
142+
<input [formControlName]="q.responseKey!" type="text" class="w-full" pInputText />
149143
@if (
150144
stepForm.controls[q.responseKey!].errors?.['required'] &&
151145
(stepForm.controls[q.responseKey!].touched || stepForm.controls[q.responseKey!].dirty)

src/app/features/registry/pages/registry-overview/registry-overview.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ export class RegistryOverviewComponent {
113113
const schemaResponses =
114114
(this.isModeration
115115
? registry?.schemaResponses
116-
: registry?.schemaResponses.filter((r) => r.reviewsState === RevisionReviewStates.Approved)) || [];
116+
: registry?.schemaResponses.filter((r) => r.reviewsState === RevisionReviewStates.Approved || this.isAdmin)) ||
117+
[];
117118
if (index !== null) {
118119
return schemaResponses[index];
119120
}

0 commit comments

Comments
 (0)