mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Feature: search suggestions for search and quick launch (#2775)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -211,12 +211,12 @@ function Home({ initialSettings }) {
|
||||
// if search provider is a list, try to retrieve from localstorage, fall back to the first
|
||||
searchProvider = getStoredProvider() ?? searchProviders[searchWidget.options.provider[0]];
|
||||
} else if (searchWidget.options?.provider === "custom") {
|
||||
searchProvider = {
|
||||
url: searchWidget.options.url,
|
||||
};
|
||||
searchProvider = searchWidget.options;
|
||||
} else {
|
||||
searchProvider = searchProviders[searchWidget.options?.provider];
|
||||
}
|
||||
// to pass to quicklaunch
|
||||
searchProvider.showSearchSuggestions = searchWidget.options?.showSearchSuggestions;
|
||||
}
|
||||
const headerStyle = settings?.headerStyle || "underlined";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user