File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
packages/frontend-2/components/settings/workspaces/security Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ const joinPolicy = computed({
192
192
}
193
193
})
194
194
195
- const radioOptions = [
195
+ const radioOptions = shallowRef ( [
196
196
{
197
197
title: ' Workspace admins have to accept a join request' ,
198
198
value: JoinPolicy .AdminApproval
@@ -201,7 +201,7 @@ const radioOptions = [
201
201
title: ' Users can join immediately without admin approval' ,
202
202
value: JoinPolicy .AutoJoin
203
203
}
204
- ] as const
204
+ ] as const )
205
205
206
206
const handleJoinPolicyUpdate = async (newValue : JoinPolicy , confirmed = false ) => {
207
207
if (! props .workspace ?.id ) return
@@ -284,20 +284,7 @@ watch(
284
284
// If last domain was removed, disable discoverability features
285
285
if (newLength === 0 && props .workspace ?.id ) {
286
286
if (props .workspace .discoverabilityEnabled ) {
287
- await updateDiscoverability ({
288
- input: {
289
- id: props .workspace .id ,
290
- discoverabilityEnabled: false
291
- }
292
- })
293
- }
294
- if (props .workspace .discoverabilityAutoJoinEnabled ) {
295
- await updateAutoJoin ({
296
- input: {
297
- id: props .workspace .id ,
298
- discoverabilityAutoJoinEnabled: false
299
- }
300
- })
287
+ isDomainDiscoverabilityEnabled .value = false
301
288
}
302
289
}
303
290
}
You can’t perform that action at this time.
0 commit comments