@@ -98,6 +98,7 @@ const EditGroup = () => {
98
98
}
99
99
return null ;
100
100
} ) ( ) ,
101
+ securityEnabled : group . securityEnabled ,
101
102
// Initialize empty arrays for add/remove actions
102
103
AddMember : [ ] ,
103
104
RemoveMember : [ ] ,
@@ -112,6 +113,7 @@ const EditGroup = () => {
112
113
allowExternal : groupInfo ?. data ?. allowExternal ,
113
114
sendCopies : groupInfo ?. data ?. sendCopies ,
114
115
hideFromOutlookClients : groupInfo ?. data ?. hideFromOutlookClients ,
116
+ securityEnabled : group . securityEnabled ,
115
117
} ) ;
116
118
117
119
// Reset the form with all values
@@ -125,7 +127,12 @@ const EditGroup = () => {
125
127
const cleanedData = { ...formData } ;
126
128
127
129
// Properties that should only be sent if they've changed from initial values
128
- const changeDetectionProperties = [ "allowExternal" , "sendCopies" , "hideFromOutlookClients" ] ;
130
+ const changeDetectionProperties = [
131
+ "allowExternal" ,
132
+ "sendCopies" ,
133
+ "hideFromOutlookClients" ,
134
+ "securityEnabled" ,
135
+ ] ;
129
136
130
137
changeDetectionProperties . forEach ( ( property ) => {
131
138
if ( formData [ property ] === initialValues [ property ] ) {
@@ -408,6 +415,18 @@ const EditGroup = () => {
408
415
/>
409
416
</ Grid >
410
417
) }
418
+ { groupType === "Microsoft 365" && (
419
+ < Grid size = { { xs : 12 } } >
420
+ < CippFormComponent
421
+ type = "switch"
422
+ label = "Security Enabled"
423
+ name = "securityEnabled"
424
+ formControl = { formControl }
425
+ isFetching = { groupInfo . isFetching }
426
+ disabled = { groupInfo . isFetching }
427
+ />
428
+ </ Grid >
429
+ ) }
411
430
</ Grid >
412
431
</ Box >
413
432
) }
0 commit comments