mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
dd8e16a70b
commit
8e3f22d5d1
2 changed files with 9 additions and 1 deletions
|
@ -321,5 +321,13 @@ describe('service_settings (FKA tilemaptest)', function () {
|
|||
expect(fileLayers).to.eql(expected);
|
||||
});
|
||||
|
||||
it ('should get hotlink', async () => {
|
||||
mapConfig.emsLandingPageUrl = 'https://foo/bar';
|
||||
const fileLayers = await serviceSettings.getFileLayers();
|
||||
const hotlink = serviceSettings.getEMSHotLink(fileLayers[0]);
|
||||
expect(hotlink).to.eql('https://foo/bar#file/US States');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
@ -200,7 +200,7 @@ uiModules.get('kibana')
|
|||
}
|
||||
}
|
||||
|
||||
async getEMSHotLink(fileLayer) {
|
||||
getEMSHotLink(fileLayer) {
|
||||
const id = `file/${fileLayer.name}`;
|
||||
return `${mapConfig.emsLandingPageUrl}#${id}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue