mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 13:55:31 +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:
commit
cf6c36ecab
@ -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([]);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user