-
- {{ registrationData().title || 'project.registrations.card.noTitle' | translate }}
-
+
@@ -81,7 +85,7 @@
@@ -113,5 +117,5 @@
{{ 'shared.resources.title' | translate }}
- }
-
+
+}
diff --git a/src/app/features/registry/models/linked-nodes.models.ts b/src/app/features/registry/models/linked-nodes.models.ts
index acfaa1265..f8f68785b 100644
--- a/src/app/features/registry/models/linked-nodes.models.ts
+++ b/src/app/features/registry/models/linked-nodes.models.ts
@@ -10,7 +10,6 @@ export interface LinkedNode {
dateModified: string;
tags: string[];
isPublic: boolean;
- contributorsCount?: number;
contributors?: ContributorModel[];
htmlUrl: string;
apiUrl: string;
diff --git a/src/app/features/registry/models/registry-components.models.ts b/src/app/features/registry/models/registry-components.models.ts
index 3693f916d..3589177d1 100644
--- a/src/app/features/registry/models/registry-components.models.ts
+++ b/src/app/features/registry/models/registry-components.models.ts
@@ -11,7 +11,6 @@ export interface RegistryComponentModel {
registrationSupplement: string;
tags: string[];
isPublic: boolean;
- contributorsCount?: number;
contributors?: ContributorModel[];
registry?: string;
}
diff --git a/src/app/shared/components/contributors/add-contributor-dialog/add-contributor-dialog.component.ts b/src/app/shared/components/contributors/add-contributor-dialog/add-contributor-dialog.component.ts
index 6c497e4b8..b535c92c8 100644
--- a/src/app/shared/components/contributors/add-contributor-dialog/add-contributor-dialog.component.ts
+++ b/src/app/shared/components/contributors/add-contributor-dialog/add-contributor-dialog.component.ts
@@ -97,7 +97,11 @@ export class AddContributorDialogComponent implements OnInit, OnDestroy {
filter((searchTerm) => !!searchTerm && searchTerm.trim().length > 0),
debounceTime(500),
distinctUntilChanged(),
- switchMap((searchTerm) => this.actions.searchUsers(searchTerm, this.currentPage())),
+ switchMap((searchTerm) => {
+ this.currentPage.set(1);
+ this.first.set(0);
+ return this.actions.searchUsers(searchTerm, this.currentPage());
+ }),
takeUntilDestroyed(this.destroyRef)
)
.subscribe(() => {
diff --git a/src/app/shared/components/contributors/add-unregistered-contributor-dialog/add-unregistered-contributor-dialog.component.ts b/src/app/shared/components/contributors/add-unregistered-contributor-dialog/add-unregistered-contributor-dialog.component.ts
index e47f70cc8..946250911 100644
--- a/src/app/shared/components/contributors/add-unregistered-contributor-dialog/add-unregistered-contributor-dialog.component.ts
+++ b/src/app/shared/components/contributors/add-unregistered-contributor-dialog/add-unregistered-contributor-dialog.component.ts
@@ -60,8 +60,8 @@ export class AddUnregisteredContributorDialogComponent {
const contributorData: ContributorAddModel = {
fullName: formData.fullName,
email: formData.email,
- isBibliographic: false,
- permission: ContributorPermission.Read,
+ isBibliographic: true,
+ permission: ContributorPermission.Write,
};
const data: ContributorDialogAddModel = { data: [contributorData], type: AddContributorType.Unregistered };
this.dialogRef.close(data);