Tags page shows "Repository has no tags yet" message when a search query returns no results

Summary

When searching for a tag name on the Repository > Tags page, if the search returns no results, the message reads "Repository has no tags yet":

image

Steps to reproduce

Navigate to https://gitlab.com/gitlab-org/gitlab/-/tags and search with query that returns no results.

What is the current bug behavior?

The message reads "Repository has no tags yet", which is incorrect.

What is the expected correct behavior?

The message should read something like "No tags found for v12.5".

Or, to be consistent with other search pages (like the Issue search page), we could use this graphic:

Screen_Shot_2019-11-18_at_1.57.45_PM

Output of checks

This bug happens on GitLab.com.

Edited by Nathan Friend