Merge branch 'VM/RED-9585' into 'master'
RED-9585 - set count param for user roles translations Closes RED-9585 See merge request redactmanager/red-ui!743
This commit is contained in:
commit
dd1e0c672b
@ -126,7 +126,7 @@ export class UserListingScreenComponent extends ListingComponent<User> implement
|
||||
|
||||
getDisplayRoles(user: User) {
|
||||
const oldRedRoles = user.roles.filter(role => role.startsWith('RED_'));
|
||||
const translatedRoles = oldRedRoles.map(role => this._translateService.instant(this.translations[role]));
|
||||
const translatedRoles = oldRedRoles.map(role => this._translateService.instant(this.translations[role], { count: 1 }));
|
||||
return translatedRoles.join(', ') || this._translateService.instant(this.translations['NO_ROLE']);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user