mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-09-08 08:28:55 +00:00
Hide repositories with 0 tags count
This commit is contained in:
@@ -302,6 +302,11 @@ func (c *Client) DeleteTag(repo, tag string) {
|
||||
c.logger.Error(errs[0])
|
||||
} else {
|
||||
// Returns 202 on success.
|
||||
if !strings.Contains(repo, "/") {
|
||||
c.tagCounts["library/"+repo]--
|
||||
} else {
|
||||
c.tagCounts[repo]--
|
||||
}
|
||||
c.logger.Infof("DELETE %s (tag:%s) %s", uri, tag, resp.Status)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user