update deletion failure modal

This commit is contained in:
Rory Powell 2022-08-26 13:12:33 +01:00
parent 5c7869d21d
commit ea6de7c428
2 changed files with 5 additions and 3 deletions

View File

@ -52,7 +52,7 @@
<ModalContent <ModalContent
size="M" size="M"
title={title} {title}
confirmText="Close" confirmText="Close"
showCloseIcon={false} showCloseIcon={false}
showCancelButton={false} showCancelButton={false}
@ -61,7 +61,7 @@
{message} {message}
</Body> </Body>
<Table <Table
schema={schema} {schema}
data={unsuccessfulUsers} data={unsuccessfulUsers}
allowEditColumns={false} allowEditColumns={false}
allowEditRows={false} allowEditRows={false}

View File

@ -187,7 +187,9 @@
if (deleteUsersResponse.unsuccessful?.length) { if (deleteUsersResponse.unsuccessful?.length) {
deletionFailureModal.show() deletionFailureModal.show()
} else { } else {
notifications.success(`Successfully deleted ${selectedRows.length} users`) notifications.success(
`Successfully deleted ${selectedRows.length} users`
)
} }
selectedRows = [] selectedRows = []