Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#28677 closed enhancement (fixed)

Media Grid: Add a "No Media Attachment Found" for failed search result

Reported by: gauravmittal1995's profile gauravmittal1995 Owned by:
Milestone: 4.0 Priority: normal
Severity: normal Version: 4.0
Component: Media Keywords: has-patch
Focuses: ui Cc:

Description

Right now, if we dont search anything, and media library is empty, a "Drop files anywhere to upload" message is displayed. And even if we search and it produces 0 results, it gives the same result.

I think that if there is no result after a search, a "Media Not found" message along with the other message should also be displayed. (See screenshot below)

Attachments (3)

#28677 (screenshot for proposed patch).png (31.8 KB) - added by gauravmittal1995 10 years ago.
If search produces no result
#28677 (screenshot for empty library).png (55.0 KB) - added by gauravmittal1995 10 years ago.
If library is initially empty
28677.patch (877 bytes) - added by gauravmittal1995 10 years ago.
Patch for the ticket

Download all attachments as: .zip

Change History (12)

@gauravmittal1995
10 years ago

If search produces no result

#1 @gauravmittal1995
10 years ago

Also if the library is empty, it gives a "library empty" message along with the "Drop files anywhere to upload" message.

@gauravmittal1995
10 years ago

If library is initially empty

@gauravmittal1995
10 years ago

Patch for the ticket

#2 @gauravmittal1995
10 years ago

  • Keywords has-patch added

#3 @michalzuber
10 years ago

Table layout has no search if no attachments: http://i.imgur.com/cC43CIx.png
Grid layout has visible search input even no attachments: http://i.imgur.com/byGR25y.png

#4 @SergeyBiryukov
10 years ago

  • Milestone changed from Awaiting Review to 4.0

#5 @ericlewis
10 years ago

  • Summary changed from Adding a "No Media Attachement Found" for failed search result, in Media grid view. to Media grid: Add a "No Media Attachement Found" for failed search result

#6 @ericlewis
10 years ago

  • Summary changed from Media grid: Add a "No Media Attachement Found" for failed search result to Media grid: Add a "No Media Attachment Found" for failed search result

#7 @ericlewis
10 years ago

  • Summary changed from Media grid: Add a "No Media Attachment Found" for failed search result to Media Grid: Add a "No Media Attachment Found" for failed search result

#8 @danielbachhuber
10 years ago

Similarly, the message should change based on which dropdown is selected:

https://dl.dropboxusercontent.com/s/3igna17ebtkcwnw/2014-07-17%20at%206.11%20PM.png

#9 @helen
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Seems kind of overkill to get into multiple translations for this. There's a message now, closing as fixed.

Note: See TracTickets for help on using tickets.