display plan user roles as string ui fix
This commit is contained in:
parent
f8684f996a
commit
f50e229b30
|
@ -234,7 +234,11 @@ export class EnumUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
toPlanUserRolesString(roles: PlanUserRole[]): string { return roles.map(x => this.toPlanUserRoleString(x)).join(', ') }
|
toPlanUserRolesString(roles: PlanUserRole[]): string {
|
||||||
|
const distinctRoles =[...new Set(roles)]
|
||||||
|
return distinctRoles?.map(x => this.toPlanUserRoleString(x)).join(', ')
|
||||||
|
}
|
||||||
|
|
||||||
toPlanUserRoleString(role: PlanUserRole): string {
|
toPlanUserRoleString(role: PlanUserRole): string {
|
||||||
switch (role) {
|
switch (role) {
|
||||||
case PlanUserRole.Owner: return this.language.instant('TYPES.PLAN-USER-ROLE.OWNER');
|
case PlanUserRole.Owner: return this.language.instant('TYPES.PLAN-USER-ROLE.OWNER');
|
||||||
|
|
Loading…
Reference in New Issue