From a0f5f0a6aeccd1dfc45da0c70a40fb1e02b06bb1 Mon Sep 17 00:00:00 2001 From: nsemets Date: Mon, 22 Sep 2025 12:24:53 +0300 Subject: [PATCH 1/2] fix(wiki): removed wiki tooltip --- src/app/features/project/wiki/wiki.component.html | 2 +- src/assets/i18n/en.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/features/project/wiki/wiki.component.html b/src/app/features/project/wiki/wiki.component.html index 0f3601362..99de7c58a 100644 --- a/src/app/features/project/wiki/wiki.component.html +++ b/src/app/features/project/wiki/wiki.component.html @@ -1,4 +1,4 @@ - + Date: Mon, 22 Sep 2025 12:25:27 +0300 Subject: [PATCH 2/2] fix(contributors): fixed placeholder --- .../contributors-dialog.component.html | 2 +- .../contributors-dialog.component.ts | 34 +++++++++++-------- 2 files changed, 21 insertions(+), 15 deletions(-) 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 f9212d8cc..3953d23fa 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 @@ -13,7 +13,7 @@

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

- +
{ const currentUserId = this.currentUser()?.id; const initialContributors = this.initialContributors(); @@ -76,17 +88,15 @@ export class ContributorsDialogComponent implements OnInit { ); }); - actions = createDispatchMap({ - updateSearchValue: UpdateContributorsSearchValue, - updatePermissionFilter: UpdatePermissionFilter, - updateBibliographyFilter: UpdateBibliographyFilter, - deleteContributor: DeleteContributor, - addContributor: AddContributor, - updateContributor: UpdateContributor, - }); + get searchPlaceholder() { + return this.resourceType === ResourceType.Project + ? 'project.contributors.searchProjectPlaceholder' + : 'project.contributors.searchRegistrationPlaceholder'; + } - private readonly resourceType: ResourceType; - private readonly resourceId: string; + get hasChanges(): boolean { + return JSON.stringify(this.initialContributors()) !== JSON.stringify(this.contributors()); + } constructor() { this.resourceId = this.config.data?.resourceId; @@ -97,10 +107,6 @@ export class ContributorsDialogComponent implements OnInit { }); } - get hasChanges(): boolean { - return JSON.stringify(this.initialContributors()) !== JSON.stringify(this.contributors()); - } - ngOnInit(): void { this.setSearchSubscription(); }