mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 08:07:12 +01:00
Add teamId.
This commit is contained in:
parent
86515d6456
commit
236a26136d
2 changed files with 3 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ export function TeamMembers({ teamId, readOnly }) {
|
||||||
<>
|
<>
|
||||||
<TeamMembersTable
|
<TeamMembersTable
|
||||||
onSave={handleSave}
|
onSave={handleSave}
|
||||||
|
teamId={teamId}
|
||||||
data={data}
|
data={data}
|
||||||
readOnly={readOnly}
|
readOnly={readOnly}
|
||||||
onFilterChange={handleFilterChange}
|
onFilterChange={handleFilterChange}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import SettingsTable from 'components/common/SettingsTable';
|
||||||
|
|
||||||
export function TeamMembersTable({
|
export function TeamMembersTable({
|
||||||
data = [],
|
data = [],
|
||||||
|
teamId,
|
||||||
onSave,
|
onSave,
|
||||||
readOnly,
|
readOnly,
|
||||||
filterValue,
|
filterValue,
|
||||||
|
|
@ -50,7 +51,7 @@ export function TeamMembersTable({
|
||||||
return (
|
return (
|
||||||
!readOnly && (
|
!readOnly && (
|
||||||
<TeamMemberRemoveButton
|
<TeamMemberRemoveButton
|
||||||
teamId={row.teamId}
|
teamId={teamId}
|
||||||
userId={row.id}
|
userId={row.id}
|
||||||
disabled={user.id === row?.user?.id || row.role === ROLES.teamOwner}
|
disabled={user.id === row?.user?.id || row.role === ROLES.teamOwner}
|
||||||
onSave={onSave}
|
onSave={onSave}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue