1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

Merge pull request #7697 from nixocio/ui_small_refactor_credential_type_tests

Small update CredentialTypeList

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-07-21 20:17:23 +00:00 committed by GitHub
commit cf6c36ecab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,6 @@ import CredentialTypeListItem from './CredentialTypeListItem';
const QS_CONFIG = getQSConfig('credential_type', {
page: 1,
page_size: 20,
order_by: 'name',
managed_by_tower: false,
});
@ -67,7 +66,7 @@ function CredentialTypeList({ i18n }) {
const {
isLoading: deleteLoading,
deletionError,
deleteItems: handleDeleteCredentialTypes,
deleteItems: deleteCredentialTypes,
clearDeletionError,
} = useDeleteItems(
useCallback(async () => {
@ -83,7 +82,7 @@ function CredentialTypeList({ i18n }) {
);
const handleDelete = async () => {
await handleDeleteCredentialTypes();
await deleteCredentialTypes();
setSelected([]);
};