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:
Alex Khomenko
2020-04-24 18:07:57 +03:00
committed by GitHub
parent 58b566a252
commit 1f2a70117b
28 changed files with 43 additions and 2392 deletions

View File

@@ -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)) {