mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
parent
47cccc640c
commit
50ae400b4c
1 changed files with 13 additions and 13 deletions
|
@ -16,7 +16,7 @@ import { watchStatusAndLicenseToInitialize } from
|
|||
'../../server/lib/watch_status_and_license_to_initialize';
|
||||
import { initTelemetryCollection } from './server/maps_telemetry';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { APP_ID, APP_ICON, createMapPath } from './common/constants';
|
||||
import { APP_ID, APP_ICON, createMapPath, MAP_SAVED_OBJECT_TYPE } from './common/constants';
|
||||
import { getAppTitle } from './common/i18n_getters';
|
||||
import _ from 'lodash';
|
||||
|
||||
|
@ -71,7 +71,7 @@ export function maps(kibana) {
|
|||
}
|
||||
},
|
||||
savedObjectsManagement: {
|
||||
'map': {
|
||||
[MAP_SAVED_OBJECT_TYPE]: {
|
||||
icon: APP_ICON,
|
||||
defaultSearchField: 'title',
|
||||
isImportableAndExportable: true,
|
||||
|
@ -112,18 +112,18 @@ export function maps(kibana) {
|
|||
let routesInitialized = false;
|
||||
|
||||
xpackMainPlugin.registerFeature({
|
||||
id: 'maps',
|
||||
id: APP_ID,
|
||||
name: i18n.translate('xpack.maps.featureRegistry.mapsFeatureName', {
|
||||
defaultMessage: 'Maps',
|
||||
}),
|
||||
icon: APP_ICON,
|
||||
navLinkId: 'maps',
|
||||
navLinkId: APP_ID,
|
||||
app: [APP_ID, 'kibana'],
|
||||
catalogue: ['maps'],
|
||||
catalogue: [APP_ID],
|
||||
privileges: {
|
||||
all: {
|
||||
savedObject: {
|
||||
all: ['map', 'query'],
|
||||
all: [MAP_SAVED_OBJECT_TYPE, 'query'],
|
||||
read: ['index-pattern']
|
||||
},
|
||||
ui: ['save', 'show', 'saveQuery'],
|
||||
|
@ -131,7 +131,7 @@ export function maps(kibana) {
|
|||
read: {
|
||||
savedObject: {
|
||||
all: [],
|
||||
read: ['map', 'index-pattern', 'query']
|
||||
read: [MAP_SAVED_OBJECT_TYPE, 'index-pattern', 'query']
|
||||
},
|
||||
ui: ['show'],
|
||||
},
|
||||
|
@ -158,7 +158,7 @@ export function maps(kibana) {
|
|||
{
|
||||
path: createMapPath('2c9c1f60-1909-11e9-919b-ffe5949a18d2'),
|
||||
label: sampleDataLinkLabel,
|
||||
icon: 'gisApp'
|
||||
icon: APP_ICON
|
||||
}
|
||||
]);
|
||||
server.replacePanelInSampleDatasetDashboard({
|
||||
|
@ -177,7 +177,7 @@ export function maps(kibana) {
|
|||
{
|
||||
path: createMapPath('5dd88580-1906-11e9-919b-ffe5949a18d2'),
|
||||
label: sampleDataLinkLabel,
|
||||
icon: 'gisApp'
|
||||
icon: APP_ICON
|
||||
}
|
||||
]);
|
||||
server.replacePanelInSampleDatasetDashboard({
|
||||
|
@ -185,7 +185,7 @@ export function maps(kibana) {
|
|||
dashboardId: '7adfa750-4c81-11e8-b3d7-01146121b73d',
|
||||
oldEmbeddableId: '334084f0-52fd-11e8-a160-89cc2ad9e8e2',
|
||||
embeddableId: '5dd88580-1906-11e9-919b-ffe5949a18d2',
|
||||
embeddableType: 'map',
|
||||
embeddableType: MAP_SAVED_OBJECT_TYPE,
|
||||
embeddableConfig: {
|
||||
isLayerTOCOpen: true
|
||||
},
|
||||
|
@ -196,7 +196,7 @@ export function maps(kibana) {
|
|||
{
|
||||
path: createMapPath('de71f4f0-1902-11e9-919b-ffe5949a18d2'),
|
||||
label: sampleDataLinkLabel,
|
||||
icon: 'gisApp'
|
||||
icon: APP_ICON
|
||||
}
|
||||
]);
|
||||
server.replacePanelInSampleDatasetDashboard({
|
||||
|
@ -204,13 +204,13 @@ export function maps(kibana) {
|
|||
dashboardId: 'edf84fe0-e1a0-11e7-b6d5-4dc382ef7f5b',
|
||||
oldEmbeddableId: '06cf9c40-9ee8-11e7-8711-e7a007dcef99',
|
||||
embeddableId: 'de71f4f0-1902-11e9-919b-ffe5949a18d2',
|
||||
embeddableType: 'map',
|
||||
embeddableType: MAP_SAVED_OBJECT_TYPE,
|
||||
embeddableConfig: {
|
||||
isLayerTOCOpen: false
|
||||
},
|
||||
});
|
||||
|
||||
server.injectUiAppVars('maps', async () => {
|
||||
server.injectUiAppVars(APP_ID, async () => {
|
||||
return await server.getInjectedUiAppVars('kibana');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue