* [file upload] document file upload privileges and provide actionable UI when failures occur * doc link * call hasImportPermission * docs tweeks * tslint * Update docs/maps/import-geospatial-data.asciidoc Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com> * Update docs/maps/import-geospatial-data.asciidoc Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com> * Update docs/maps/import-geospatial-data.asciidoc Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com> * Update docs/maps/import-geospatial-data.asciidoc Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com> * review feedback * fix bullet list format * clean-up i18n ids * Update docs/maps/import-geospatial-data.asciidoc Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com> * documenation review feedback * add period to last privilege bullet item Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
23 lines
872 B
TypeScript
23 lines
872 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { CoreStart } from 'kibana/public';
|
|
import { FileUploadStartDependencies } from './plugin';
|
|
|
|
let coreStart: CoreStart;
|
|
let pluginsStart: FileUploadStartDependencies;
|
|
export function setStartServices(core: CoreStart, plugins: FileUploadStartDependencies) {
|
|
coreStart = core;
|
|
pluginsStart = plugins;
|
|
}
|
|
|
|
export const getDocLinks = () => coreStart.docLinks;
|
|
export const getIndexPatternService = () => pluginsStart.data.indexPatterns;
|
|
export const getHttp = () => coreStart.http;
|
|
export const getSavedObjectsClient = () => coreStart.savedObjects.client;
|
|
export const getUiSettings = () => coreStart.uiSettings;
|