mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 13:44:23 +08:00
Show team members counter in team table [SCI-5589] (#6073)
This commit is contained in:
parent
9d0f62824e
commit
fe58d9c864
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue