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

This commit is contained in:
Renaud Chaput authored and GitHub committed 2024-03-22 11:59:35 +00:00
1 parent 05eda8d193
commit ec1e770fea
2 files changed
+4 -3

No files matched your search

@@ -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 (