mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-09-07 16:10:04 +00:00
Show the root namespace "library" in the dropdown even when there are no repos in it
This commit is contained in:
@@ -148,6 +148,9 @@ func (c *Client) Namespaces() []string {
|
||||
for k := range c.repos {
|
||||
namespaces = append(namespaces, k)
|
||||
}
|
||||
if !ItemInSlice("library", namespaces) {
|
||||
namespaces = append(namespaces, "library")
|
||||
}
|
||||
sort.Strings(namespaces)
|
||||
return namespaces
|
||||
}
|
||||
|
Reference in New Issue
Block a user