diff --git a/src/app/features/metadata/dialogs/contributors-dialog/contributors-dialog.component.html b/src/app/features/metadata/dialogs/contributors-dialog/contributors-dialog.component.html index 3953d23fa..247ac204d 100644 --- a/src/app/features/metadata/dialogs/contributors-dialog/contributors-dialog.component.html +++ b/src/app/features/metadata/dialogs/contributors-dialog/contributors-dialog.component.html @@ -1,7 +1,5 @@
-
-

{{ 'project.contributors.addContributor' | translate }}

- +
@if (isCurrentUserAdminContributor()) { !!result)).subscribe({ - next: () => { + this.dialogService + .open(ContributorsDialogComponent, { + header: this.translateService.instant('project.metadata.contributors.editContributors'), + focusOnShow: false, + closeOnEscape: true, + modal: true, + closable: true, + breakpoints: { '768px': '95vw' }, + data: { + resourceId: this.resourceId, + resourceType: this.resourceType(), + }, + }) + .onClose.pipe(filter((result) => !!result)) + .subscribe(() => { this.actions.getResourceMetadata(this.resourceId, this.resourceType()); this.toastService.showSuccess('project.metadata.contributors.updateSucceed'); - }, - }); + }); } openEditTitleDialog(): void { diff --git a/src/app/shared/components/resource-card/resource-card.component.html b/src/app/shared/components/resource-card/resource-card.component.html index d5616934f..dbe1167bf 100644 --- a/src/app/shared/components/resource-card/resource-card.component.html +++ b/src/app/shared/components/resource-card/resource-card.component.html @@ -48,7 +48,7 @@

{{ 'resourceCard.labels.from' | translate }}