mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Search: cleanup old Angular files (#23860)
* Search: Remove wrapperRef * Search: Remove angular search files * Search: Unify search types * Search: Remove redundant hideHeader prop * Search: Remove app/types/search.ts * Search: Update imports * Search: Fix type errors
This commit is contained in:
@@ -3,7 +3,7 @@ import React, { PureComponent } from 'react';
|
||||
import { InlineFormLabel, LegacyForms } from '@grafana/ui';
|
||||
const { Select } = LegacyForms;
|
||||
|
||||
import { DashboardSearchHit, DashboardSearchHitType } from 'app/types';
|
||||
import { DashboardSearchHit, DashboardSearchItemType } from 'app/features/search/types';
|
||||
import { backendSrv } from 'app/core/services/backend_srv';
|
||||
|
||||
export interface Props {
|
||||
@@ -50,7 +50,7 @@ export class SharedPreferences extends PureComponent<Props, State> {
|
||||
id: 0,
|
||||
title: 'Default',
|
||||
tags: [],
|
||||
type: '' as DashboardSearchHitType,
|
||||
type: '' as DashboardSearchItemType,
|
||||
uid: '',
|
||||
uri: '',
|
||||
url: '',
|
||||
@@ -60,6 +60,7 @@ export class SharedPreferences extends PureComponent<Props, State> {
|
||||
folderUrl: '',
|
||||
isStarred: false,
|
||||
slug: '',
|
||||
items: [],
|
||||
};
|
||||
|
||||
if (prefs.homeDashboardId > 0 && !dashboards.find(d => d.id === prefs.homeDashboardId)) {
|
||||
|
Reference in New Issue
Block a user