Skip to content

Commit

Permalink
#2392-Search: No results
Browse files Browse the repository at this point in the history
  • Loading branch information
ssethupathy committed Aug 11, 2023
1 parent 7b24338 commit aef006a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions sourcecode/hub/lang/en/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@
'disconnect-google' => 'Disconnect from Google',
'disconnect-facebook' => 'Disconnect from Facebook',
'alert-password-empty' => 'To disconnect social login providers, you must first set a password on your account',
'alert-no-results-found' => 'No results found',
];
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<div>
<x-content.search :query="$query"/>

<x-content.grid :contents="$results"/>
@if ($results->isEmpty())
<p>{{ trans('messages.alert-no-results-found') }}</p>
@else
<x-content.grid :contents="$results"/>
@endif
</div>

0 comments on commit aef006a

Please sign in to comment.