Project

General

Profile

Revision f02a9ce2

Added by Sebastian Gräßl over 5 years ago

Fixes #18733 - Prevent fallback to Docker Hub on registry search

When searching for an external registry the search would show
results from Docker Hub due to it searching via the compute
resource.

By using a registry parameter to indicate which search tab is
active this gets prevented on the backend as well as on the
client by not searching when no registry is selected.

View differences:

app/models/docker_registry.rb
43 43
  end
44 44

  
45 45
  def api
46
    @api ||= Service::RegistryApi.new(url: url,
47
                                      user: username,
46
    @api ||= Service::RegistryApi.new(url: url, user: username,
48 47
                                      password: password)
49 48
  end
50 49

  

Also available in: Unified diff