mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
feat: 🎸 navigate from maps embeddable to app in SPA way (#74102)
This commit is contained in:
parent
4f2209b209
commit
23fedcf636
3 changed files with 13 additions and 1 deletions
|
@ -81,6 +81,8 @@ export class MapEmbeddable extends Embeddable<MapEmbeddableInput, MapEmbeddableO
|
|||
initialInput,
|
||||
{
|
||||
editUrl: config.editUrl,
|
||||
editApp: config.editApp,
|
||||
editPath: config.editPath,
|
||||
indexPatterns: config.indexPatterns,
|
||||
editable: config.editable,
|
||||
defaultTitle: config.title,
|
||||
|
|
|
@ -12,7 +12,13 @@ import {
|
|||
IContainer,
|
||||
} from '../../../../../src/plugins/embeddable/public';
|
||||
import '../index.scss';
|
||||
import { getExistingMapPath, MAP_SAVED_OBJECT_TYPE, APP_ICON } from '../../common/constants';
|
||||
import {
|
||||
getExistingMapPath,
|
||||
MAP_SAVED_OBJECT_TYPE,
|
||||
APP_ICON,
|
||||
APP_ID,
|
||||
MAP_PATH,
|
||||
} from '../../common/constants';
|
||||
import { LayerDescriptor } from '../../common/descriptor_types';
|
||||
import { MapEmbeddableInput } from './types';
|
||||
import { lazyLoadMapModules } from '../lazy_load_bundle';
|
||||
|
@ -104,6 +110,8 @@ export class MapEmbeddableFactory implements EmbeddableFactoryDefinition {
|
|||
layerList,
|
||||
title: savedMap.title,
|
||||
editUrl: getHttp().basePath.prepend(getExistingMapPath(savedObjectId)),
|
||||
editApp: APP_ID,
|
||||
editPath: `/${MAP_PATH}/${savedObjectId}`,
|
||||
indexPatterns,
|
||||
editable: await this.isEditable(),
|
||||
settings,
|
||||
|
|
|
@ -16,6 +16,8 @@ import { LayerDescriptor, MapCenterAndZoom } from '../../common/descriptor_types
|
|||
|
||||
export interface MapEmbeddableConfig {
|
||||
editUrl?: string;
|
||||
editApp?: string;
|
||||
editPath?: string;
|
||||
indexPatterns: IIndexPattern[];
|
||||
editable: boolean;
|
||||
title?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue