Skip to content

Commit

Permalink
update query assist icon
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <[email protected]>
  • Loading branch information
joshuali925 committed Aug 28, 2024
1 parent f9965cd commit e02e398
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';

const [getAvailableLanguagesForDataSource, clearCache] = (() => {
const availableLanguagesByDataSource: Map<string | undefined, string[]> = new Map();
Expand Down Expand Up @@ -90,7 +91,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 e02e398

Please sign in to comment.