Show loading icon in the environments dropdown when environments query is still loading

Follow-up for #388952 (closed).

The following discussion from !113171 (merged) should be addressed:

We can instead use the loading state of the dropdown when the component is loading the environments query for the first time:

loading_dropdown

This should not apply to subsequent refetches, since that would be the equivalent of searching using a new search term. The dropdown should be available during a search, with searching = true to show the loading icon in the dropdown contents instead (which we already do).

Edited by Mireya Andres