You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/client/auth-options-form.client.tsx
title: `Are you sure you want to remove ${option.slice(0,1).toUpperCase()+option.slice(1)} as an authentication option for this ecosystem?`,
51
-
description:
52
-
"Users will no longer be able to log into your ecosystem using this option. Any users that previously used this option will be unable to log in.",
53
-
authOptions: ecosystem.authOptions.filter(
54
-
(o)=>o!==option,
55
-
),
56
-
});
57
-
}else{
58
-
setMessageToConfirm({
59
-
title: `Are you sure you want to add ${option.slice(0,1).toUpperCase()+option.slice(1)} as an authentication option for this ecosystem?`,
60
-
description:
61
-
"Users will be able to log into your ecosystem using this option. If you later remove this option users that used it will no longer be able to log in.",
62
-
authOptions: [...ecosystem.authOptions,option],
63
-
});
64
-
}
65
-
}}
66
-
/>
67
-
{option.slice(0,1).toUpperCase()+option.slice(1)}
68
-
</CheckboxWithLabel>
69
-
))}
70
-
<ConfirmationDialog
71
-
open={!!messageToConfirm}
72
-
onOpenChange={(open)=>{
73
-
if(!open){
74
-
setMessageToConfirm(undefined);
75
-
}
76
-
}}
77
-
title={messageToConfirm?.title}
78
-
description={messageToConfirm?.description}
79
-
onSubmit={()=>{
80
-
invariant(messageToConfirm,"Must have message for modal to be open");
title: `Are you sure you want to remove ${option.slice(0,1).toUpperCase()+option.slice(1)} as an authentication option for this ecosystem?`,
65
+
description:
66
+
"Users will no longer be able to log into your ecosystem using this option. Any users that previously used this option will be unable to log in.",
67
+
authOptions: ecosystem.authOptions?.filter(
68
+
(o)=>o!==option,
69
+
),
70
+
});
71
+
}else{
72
+
setMessageToConfirm({
73
+
title: `Are you sure you want to add ${option.slice(0,1).toUpperCase()+option.slice(1)} as an authentication option for this ecosystem?`,
74
+
description:
75
+
"Users will be able to log into your ecosystem using this option. If you later remove this option users that used it will no longer be able to log in.",
Copy file name to clipboardExpand all lines: apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/components/client/integration-permissions-toggle.client.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ export function IntegrationPermissionsToggle({
89
89
onSubmit={()=>{
90
90
invariant(messageToConfirm,"Must have message for modal to be open");
Copy file name to clipboardExpand all lines: apps/dashboard/src/app/(dashboard)/dashboard/connect/ecosystem/[slug]/(active)/hooks/use-update-ecosystem.ts
0 commit comments