Skip to content

Conversation

@blesildaramirez
Copy link
Contributor

No description provided.

Copy link
Contributor

@jardakotesovec jardakotesovec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor suggestions. I think it make sense to list all roles..

let label = `${participant.fullName} ${username}`;

if (participant.userName === currentUser.getCurrentUserName()) {
if (participant.username === currentUser.getCurrentUserName()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor thing. Even though username should be unique - checking by id feels safer.

label,
subLabel: withSubLabel ? participant.roleName : null,
value: participant.id,
subLabel: withSubLabel ? participant.roles?.[0]?.name : null,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current discussions are listing all roles. Its not all roles of that user - but all roles that given user is assigned to the submission. I see that @Vitaliy-1 handled that nicely already on the backend.

Anyway - I think just comma separated list here would be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants