Web-Multi-Media / multi-web-audio-sequencer

Web collaborative step sequencer
https://labs.freesound.org/sequencer
GNU General Public License v3.0
10 stars 2 forks source link

Display error message if no results found #19

Closed DerouineauNicolas closed 6 years ago

DerouineauNicolas commented 6 years ago

At the moment, no message is displayed if the freesound's request returns nothing. We should add a message to warn the user.

xavierfav commented 6 years ago

I don't see why is this useful. Moreover, having no result is not an error.

What happen when the search does not retrieve any result is that no result are displayed. Also, the total number of page displayed is 0. Maybe we could just add something telling the total number of sounds, so it makes it clear in any case.

This would be done just by adding an if statement in the Search.prototype.searchFreesound method in the freesound.textSearchcallback.

DerouineauNicolas commented 6 years ago

In the end, 358dc89d4a59956b32baff8bfb1bc7446a48d626 improved the readbility. Moreover , this issue overlaps with issues #6 and #49.