diff --git a/packages/forklift-console-plugin/src/modules/Providers/actions/ProviderActionsDropdownItems.tsx b/packages/forklift-console-plugin/src/modules/Providers/actions/ProviderActionsDropdownItems.tsx index 66c7d2948..28aade4d8 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/actions/ProviderActionsDropdownItems.tsx +++ b/packages/forklift-console-plugin/src/modules/Providers/actions/ProviderActionsDropdownItems.tsx @@ -24,7 +24,7 @@ export const ProviderActionsDropdownItems = ({ data }: ProviderActionsDropdownIt showModal(); }; - return [ + const dropdownItems = [ {t('Edit Provider')} , @@ -38,6 +38,11 @@ export const ProviderActionsDropdownItems = ({ data }: ProviderActionsDropdownIt {t('Delete Provider')} , ]; + + // excluding the EditCredentials options since not supported for OVA + const ovaDropdownItems = dropdownItems.filter((item) => item.key !== 'EditCredentials'); + + return provider?.spec?.type === 'ova' ? ovaDropdownItems : dropdownItems; }; interface ProviderActionsDropdownItemsProps {