Skip to content

Commit 3ebefce

Browse files
Comments from PR
1 parent 2eaeb89 commit 3ebefce

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

packages/frontend-2/components/settings/workspaces/security/Discoverability.vue

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const joinPolicy = computed({
192192
}
193193
})
194194
195-
const radioOptions = [
195+
const radioOptions = shallowRef([
196196
{
197197
title: 'Workspace admins have to accept a join request',
198198
value: JoinPolicy.AdminApproval
@@ -201,7 +201,7 @@ const radioOptions = [
201201
title: 'Users can join immediately without admin approval',
202202
value: JoinPolicy.AutoJoin
203203
}
204-
] as const
204+
] as const)
205205
206206
const handleJoinPolicyUpdate = async (newValue: JoinPolicy, confirmed = false) => {
207207
if (!props.workspace?.id) return
@@ -284,20 +284,7 @@ watch(
284284
// If last domain was removed, disable discoverability features
285285
if (newLength === 0 && props.workspace?.id) {
286286
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
301288
}
302289
}
303290
}

0 commit comments

Comments
 (0)