Skip to content

Commit 39e60ec

Browse files
committed
fix(settings): confirm Open Membership toggle
1 parent 5078825 commit 39e60ec

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

static/app/components/confirm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ class ConfirmModal extends Component<ModalProps, ModalState> {
315315
) : (
316316
<Button
317317
onClick={this.handleClose}
318+
autoFocus
318319
aria-label={typeof cancelText === 'string' ? cancelText : t('Cancel')}
319320
>
320321
{cancelText ?? t('Cancel')}
@@ -331,7 +332,6 @@ class ConfirmModal extends Component<ModalProps, ModalState> {
331332
disabled={this.state.disableConfirmButton}
332333
priority={priority}
333334
onClick={this.handleConfirm}
334-
autoFocus
335335
aria-label={typeof confirmText === 'string' ? confirmText : t('Confirm')}
336336
>
337337
{confirmText ?? t('Confirm')}

static/app/data/forms/organizationMembershipSettings.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ const formGroups: JsonFormObject[] = [
2424
type: 'boolean',
2525
label: t('Open Team Membership'),
2626
help: t('Allow organization members to freely join any team'),
27+
confirm: {
28+
true: t(
29+
'This will allow any members of your organization to freely join any team and access any project of your organization. Do you want to continue?'
30+
),
31+
false: t(
32+
'This will disallow free access to any team and project within your organization. Do you want to continue?'
33+
),
34+
},
2735
},
2836
{
2937
name: 'allowMemberInvite',

0 commit comments

Comments
 (0)