diff --git a/src/app/pages/community-info/profile/edit-community/edit-community.component.ts b/src/app/pages/community-info/profile/edit-community/edit-community.component.ts
index dbfea03..a488aaa 100644
--- a/src/app/pages/community-info/profile/edit-community/edit-community.component.ts
+++ b/src/app/pages/community-info/profile/edit-community/edit-community.component.ts
@@ -20,11 +20,19 @@ import {ClearCacheService} from "../../../../openaireLibrary/services/clear-cach
Description of the community
@@ -153,6 +161,8 @@ export class EditCommunityComponent {
communityId: this.fb.control(this.community.communityId),
name: this.fb.control(this.community.title, Validators.required),
shortName: this.fb.control(this.community.shortTitle, Validators.required),
+ displayName: this.fb.control(this.community.title, Validators.required),
+ displayShortName: this.fb.control(this.community.shortTitle, Validators.required),
description: this.fb.control(this.community.description),
status: this.fb.control(this.community.status),
claim: this.fb.control(this.community.claim),
@@ -182,6 +192,7 @@ export class EditCommunityComponent {
if (!this.isAdmin) {
setTimeout(() => {
this.communityFb.get('shortName').disable();
+ this.communityFb.get('name').disable();
}, 0);
}
}
@@ -190,9 +201,9 @@ export class EditCommunityComponent {
}
public get isAdmin() {
- return Session.isPortalAdministrator(this.user);
+ return Session.isPortalAdministrator(this.user) || Session.isCommunityCurator(this.user);
}
-
+
public get disabled(): boolean {
return (this.communityFb && this.communityFb.invalid) ||
(this.communityFb && this.communityFb.pristine && !this.isNew && !this.file) ||