From 994ddf7e6f37523f1472d3bf832f76241440c724 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Tue, 11 Jun 2024 15:45:10 +0100 Subject: [PATCH] RecentlyDeleted: Remove search box (#89043) * RecentlyDeleted: Remove search box * i18n --- .../components/BrowseFilters.tsx | 2 +- .../manage-dashboards/RecentlyDeletedPage.tsx | 10 -------- .../search/page/components/ActionRow.tsx | 24 +++++++++---------- public/locales/en-US/grafana.json | 5 ---- public/locales/pseudo-LOCALE/grafana.json | 5 ---- 5 files changed, 13 insertions(+), 33 deletions(-) diff --git a/public/app/features/browse-dashboards/components/BrowseFilters.tsx b/public/app/features/browse-dashboards/components/BrowseFilters.tsx index 43e64d57cc2..2e339fbd012 100644 --- a/public/app/features/browse-dashboards/components/BrowseFilters.tsx +++ b/public/app/features/browse-dashboards/components/BrowseFilters.tsx @@ -11,11 +11,11 @@ export function BrowseFilters() {
{ return ( - stateManager.onQueryChange(e)} - /> void; onSortChange: (value?: string) => void; onStarredFilterChange?: (event: FormEvent) => void; onTagFilterChange: (tags: string[]) => void; getTagOptions: () => Promise; getSortOptions: () => Promise; - sortPlaceholder?: string; onDatasourceChange: (ds?: string) => void; onPanelTypeChange: (pt?: string) => void; - includePanels: boolean; onSetIncludePanels: (v: boolean) => void; - state: SearchState; - showStarredFilter?: boolean; - hideLayout?: boolean; } export function getValidQueryLayout(q: SearchState): SearchLayout { @@ -52,20 +52,20 @@ export function getValidQueryLayout(q: SearchState): SearchLayout { } export const ActionRow = ({ + state, + showStarredFilter, + showLayout, + sortPlaceholder, onLayoutChange, onSortChange, onStarredFilterChange = () => {}, onTagFilterChange, getTagOptions, getSortOptions, - sortPlaceholder, onDatasourceChange, onPanelTypeChange, onSetIncludePanels, - state, - showStarredFilter, - hideLayout, -}: Props) => { +}: ActionRowProps) => { const styles = useStyles2(getStyles); const layout = getValidQueryLayout(state); @@ -113,7 +113,7 @@ export const ActionRow = ({ - {!hideLayout && ( + {showLayout && (