Show team members counter in team table [SCI-5589] (#6073)

This commit is contained in:
ajugo 2023-08-24 15:15:06 +02:00 committed by GitHub
parent 9d0f62824e
commit fe58d9c864
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,11 +33,7 @@ class TeamsDatatable < CustomDatatable
escape_input(record.name)
end,
'1': escape_input(current_user_team_role(record)&.name),
'2': if current_user_team_role(record)&.viewer?
I18n.t('users.settings.teams.index.na')
else
record.users.count
end,
'2': record.users.count,
'3': leave_team_button(record)
}
end