Search: only show suggestions when not submitted

merge-requests/837/head
Alex Gleason 2021-11-01 14:07:02 -05:00
rodzic 23393710c7
commit b32745a36d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 2 dodań i 7 usunięć

Wyświetl plik

@ -45,9 +45,9 @@ export default class SearchResults extends ImmutablePureComponent {
if (results.get('accounts') && results.get('accounts').size > 0) {
searchResults = results.get('accounts').map(accountId => <AccountContainer key={accountId} id={accountId} />);
} else if (suggestions && !suggestions.isEmpty()) {
} else if (!submitted && suggestions && !suggestions.isEmpty()) {
searchResults = suggestions.map(suggestion => <AccountContainer key={suggestion.get('account')} id={suggestion.get('account')} />);
} else if (submitted) {
} else if (loaded) {
noResultsMessage = (
<div className='empty-column-indicator'>
<FormattedMessage

Wyświetl plik

@ -165,11 +165,6 @@ input.search__input {
border-bottom: none;
}
.search-page {
height: 100%;
min-height: 140px;
}
.column {
.search {
padding: 10px 15px;