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
{{ message }}
Repository navigation
Commit 2c73588
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/platform/app/(shell)/settings/_components/sections/members/remove-member-modal.tsx
+25-16Lines changed: 25 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -33,34 +33,43 @@ function describeImpact(
33
33
return`${subject}${who} (${formatQuotedNameList([...credentials],MAX_LISTED_CREDENTIALS)}) will stop working in organization workspaces until another member reconnects ${pronoun}.`
34
34
}
35
35
36
+
functionremovalCopy(target: RemovalTarget|null){
37
+
if(target?.isSelf)
38
+
return{
39
+
title: 'Leave organization',
40
+
confirmLabel: 'Leave organization',
41
+
body: 'Are you sure you want to leave this organization? You will lose access to all team resources. This action cannot be undone.',
42
+
}
43
+
if(target?.isExternal)
44
+
return{
45
+
title: 'Remove external member',
46
+
confirmLabel: 'Remove',
47
+
body: `Are you sure you want to remove ${target.name} from all organization workspaces? Their workspace access and workspace credential access will be revoked. This action cannot be undone.`,
48
+
}
49
+
return{
50
+
title: 'Remove team member',
51
+
confirmLabel: 'Remove',
52
+
body: `Are you sure you want to remove ${target?.name} from the team? This action cannot be undone.`,
53
+
}
54
+
}
55
+
36
56
/** Removal discloses what stops working first, holding the confirm until that check has answered. */
? 'Are you sure you want to leave this organization? You will lose access to all team resources. This action cannot be undone.'
60
-
: target?.isExternal
61
-
? `Are you sure you want to remove ${target.name} from all organization workspaces? Their workspace access and workspace credential access will be revoked. This action cannot be undone.`
62
-
: `Are you sure you want to remove ${target?.name} from the team? This action cannot be undone.`}
0 commit comments