0
0
Fork 0

Add the role ID to the badge component (#29707)

This commit is contained in:
Renaud Chaput 2024-03-22 12:59:35 +01:00 committed by GitHub
parent 05eda8d193
commit ec1e770fea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -408,7 +408,7 @@ class Header extends ImmutablePureComponent {
}
account.get('roles', []).forEach((role) => {
badges.push(<Badge key={`role-badge-${role.get('id')}`} label={<span>{role.get('name')}</span>} domain={domain} />);
badges.push(<Badge key={`role-badge-${role.get('id')}`} label={<span>{role.get('name')}</span>} domain={domain} roleId={role.get('id')} />);
});
return (