private void PopulateECRImagesDropdown()

in Editor/Window/Containers/ContainersFleetUpdatePopup.cs [395:412]


        private void PopulateECRImagesDropdown(string repositoryName)
        {
            if (_stateManager.IsBootstrapped() && _stateManager.IsInContainersRegion())
            {
                if (!string.IsNullOrEmpty(repositoryName))
                {
                    var images = _coreApi.ListECRImages(_stateManager.ProfileName, _stateManager.Region, repositoryName);
                    List<string> choices = images.ECRImages.Select(image => string.IsNullOrEmpty(image.ImageTag) ? image.ImageDigest : image.ImageTag).ToList();
                    _selectECRImageDropdown.choices = choices;
                    if (!string.IsNullOrEmpty(_stateManager.ContainerECRImageId) && choices.Contains(_stateManager.ContainerECRImageId))
                    {
                        _selectECRImageDropdown.value = _stateManager.ContainerECRImageId;
                        return;
                    }
                }
            }
            _selectECRImageDropdown.value = null;
        }