Skip to content

Commit

Permalink
[discover] update query assist icon (#7898) (#7899)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7a8e427)

Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 6feda9a commit 9b17f40
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
38 changes: 21 additions & 17 deletions src/plugins/query_enhancements/public/assets/query_assist_mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { i18n } from '@osd/i18n';
import { HttpSetup } from 'opensearch-dashboards/public';
import React, { useEffect, useState } from 'react';
import { distinctUntilChanged, map, startWith, switchMap } from 'rxjs/operators';
Expand All @@ -14,8 +15,8 @@ import {
} from '../../../../data/public';
import { API } from '../../../common';
import { ConfigSchema } from '../../../common/config';
import { QueryAssistBanner, QueryAssistBar } from '../components';
import assistantMark from '../../assets/query_assist_mark.svg';
import { QueryAssistBanner, QueryAssistBar } from '../components';

/**
* @returns list of query assist supported languages for the given data source.
Expand Down Expand Up @@ -84,7 +85,9 @@ export const createQueryAssistExtension = (
return {
type: DATA_STRUCTURE_META_TYPES.FEATURE,
icon: { type: assistantMark },
tooltip: 'Query assist is available',
tooltip: i18n.translate('queryAssist.meta.icon.tooltip', {
defaultMessage: 'Query assist is available',
}),
};
}
},
Expand Down

0 comments on commit 9b17f40

Please sign in to comment.