mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Serverless Search] Fix language icons (#166739)
## Summary This fixes language icons for language clients dropdown. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
100e5fc85d
commit
bda30ddfd2
4 changed files with 5 additions and 5 deletions
|
@ -56,7 +56,7 @@ export const LanguageClientPanel: React.FC<SelectClientProps> = ({
|
|||
<EuiFlexItem grow={false}>
|
||||
<EuiImage
|
||||
alt=""
|
||||
src={src || `${assetBasePath}${language.iconType}`}
|
||||
src={src || `${assetBasePath}/${language.iconType}`}
|
||||
height={euiTheme.size.xl}
|
||||
width={euiTheme.size.xl}
|
||||
/>
|
||||
|
|
|
@ -83,7 +83,7 @@ export const APIGettingStarted = () => {
|
|||
ingestPipeline: indexPipelineParameters.name,
|
||||
url: cloudContext.elasticsearchUrl || DEFAULT_URL,
|
||||
};
|
||||
const assetBasePath = http.basePath.prepend(`/plugins/${PLUGIN_ID}/assets/client_libraries/`);
|
||||
const assetBasePath = http.basePath.prepend(`/plugins/${PLUGIN_ID}/assets/client_libraries`);
|
||||
|
||||
const [selectedLanguage, setSelectedLanguage] = useState<LanguageDefinition>(curlDefinition);
|
||||
return (
|
||||
|
|
|
@ -30,8 +30,8 @@ import { useKibanaServices } from '../hooks/use_kibana';
|
|||
export const ConnectorsOverview = () => {
|
||||
const { http } = useKibanaServices();
|
||||
|
||||
const assetBasePath = http.basePath.prepend(`/plugins/${PLUGIN_ID}/assets/`);
|
||||
const connectorsPath = assetBasePath + 'connectors.svg';
|
||||
const assetBasePath = http.basePath.prepend(`/plugins/${PLUGIN_ID}/assets`);
|
||||
const connectorsPath = assetBasePath + '/connectors.svg';
|
||||
|
||||
const { data } = useQuery({
|
||||
queryKey: ['fetchConnectors'],
|
||||
|
|
|
@ -57,7 +57,7 @@ export const ElasticsearchOverview = () => {
|
|||
const elasticsearchURL = useMemo(() => {
|
||||
return cloud?.elasticsearchUrl ?? ELASTICSEARCH_URL_PLACEHOLDER;
|
||||
}, [cloud]);
|
||||
const assetBasePath = http.basePath.prepend(`/plugins/${PLUGIN_ID}/assets/`);
|
||||
const assetBasePath = http.basePath.prepend(`/plugins/${PLUGIN_ID}/assets`);
|
||||
const codeSnippetArguments: LanguageDefinitionSnippetArguments = {
|
||||
url: elasticsearchURL,
|
||||
apiKey: clientApiKey,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue