Option "convert to managed", hide "install agent" if user doesn't provide credentials

Description:
Morpheus should show “install agent” only if user provide the credentials as part of “Convert to managed” operation for the discovered VMs.

Currently though credentials are not provided, still user can select “Install agent” option. But in the backend, agent installation is not happening for the “convert to managed” VMs.

This is a bad user experience and user would expect the agent should be present in their VM as part of this activity.


Example/Use case(s):

  1. Perform “Convert to managed” operation for the discovered VM without credentials and option “install agent”