Skip to content

Commit 402c410

Browse files
committed
fix
1 parent 74b192d commit 402c410

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

public/locales/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@
429429
"chooseParentLabel": "Choose parent to import members from",
430430
"whatToImportLabel": "What would you like to import?",
431431
"serviceAccountsLabel": "Service Accounts",
432-
"addMembersButton": "Add members"
432+
"addMembersButton": "Add members",
433+
"selectAllButton": "Select all",
434+
"deselectAllButton": "Deselect all"
433435
}
434436
}

src/components/Members/ImportMembersDialog.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,17 @@ const ImportMembersSelectionTable: FC<{
262262

263263
return (
264264
<FlexBox direction="Column" gap={8} style={{ padding: '1rem' }}>
265+
<FlexBox justifyContent="End" gap={8} style={{ marginBottom: '0.5rem' }}>
266+
<Button
267+
design="Transparent"
268+
onClick={() => setSelectedEmails(new Set(filteredMockedMembers.map((m) => m.name)))}
269+
>
270+
{t('ImportMembersDialog.selectAllButton')}
271+
</Button>
272+
<Button design="Transparent" onClick={() => setSelectedEmails(new Set())}>
273+
{t('ImportMembersDialog.deselectAllButton')}
274+
</Button>
275+
</FlexBox>
265276
<AnalyticalTable scaleWidthMode="Smart" columns={columns} data={data} className={styles.table} />
266277

267278
<FlexBox justifyContent="End" gap={8} style={{ marginTop: '1rem' }}>

0 commit comments

Comments
 (0)