0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

Package search requires 'access' authorization

Added 'access' check to search route
Handle failed Ajax search request as 'No result'
This commit is contained in:
Cedric Darne 2016-02-04 13:52:09 -05:00 committed by Meeeeow
parent 601caa8711
commit cb37b38ee4
2 changed files with 6 additions and 0 deletions

View file

@ -61,6 +61,9 @@ $(function() {
$searchResults.html( $searchResults.html(
"<div class='no-results'><big>No Results</big></div>") "<div class='no-results'><big>No Results</big></div>")
} }
}).fail(function () {
$searchResults.html(
"<div class='no-results'><big>No Results</big></div>")
}) })
}) })

View file

@ -459,6 +459,9 @@ $(function() {
$searchResults.html( $searchResults.html(
"<div class='no-results'><big>No Results</big></div>") "<div class='no-results'><big>No Results</big></div>")
} }
}).fail(function () {
$searchResults.html(
"<div class='no-results'><big>No Results</big></div>")
}) })
}) })