Skip to content

Commit e9a7d16

Browse files
add remove member
1 parent 9f894dd commit e9a7d16

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

src/views/teams-share/sharepoint/SharepointList.jsx

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,46 @@ const SharepointList = () => {
2828
},
2929
]}
3030
actions={[
31+
{
32+
label: 'Add member',
33+
color: 'info',
34+
modal: true,
35+
modalType: 'POST',
36+
modalBody: {
37+
groupId: row.UPN,
38+
TenantFilter: tenant.defaultDomainName,
39+
add: true,
40+
URL: row.URL,
41+
SharePointType: row.Template,
42+
},
43+
modalUrl: `/api/ExecSetSharePointMember`,
44+
modalDropdown: {
45+
url: `/api/listUsers?TenantFilter=${tenant.defaultDomainName}`,
46+
labelField: 'displayName',
47+
valueField: 'userPrincipalName',
48+
},
49+
modalMessage: 'Select the User to add as a member.',
50+
},
51+
{
52+
label: 'Remove member',
53+
color: 'info',
54+
modal: true,
55+
modalType: 'POST',
56+
modalBody: {
57+
groupId: row.UPN,
58+
TenantFilter: tenant.defaultDomainName,
59+
add: false,
60+
URL: row.URL,
61+
SharePointType: row.Template,
62+
},
63+
modalUrl: `/api/ExecSetSharePointMember`,
64+
modalDropdown: {
65+
url: `/api/listUsers?TenantFilter=${tenant.defaultDomainName}`,
66+
labelField: 'displayName',
67+
valueField: 'userPrincipalName',
68+
},
69+
modalMessage: 'Select the User to remove as a member.',
70+
},
3171
{
3272
label: 'Add Site Admin',
3373
color: 'info',

0 commit comments

Comments
 (0)