mirror of
https://github.com/nasa/openmct.git
synced 2025-01-03 03:46:42 +00:00
[Plugins] Only register elasticsearch url when provided
This commit is contained in:
parent
39eb7ba862
commit
c7ae520d7e
@ -48,8 +48,8 @@ define([
|
|||||||
|
|
||||||
plugins.ElasticSearch = function (url) {
|
plugins.ElasticSearch = function (url) {
|
||||||
return function (openmct) {
|
return function (openmct) {
|
||||||
|
if (url) {
|
||||||
var bundleName = "config/elastic";
|
var bundleName = "config/elastic";
|
||||||
|
|
||||||
openmct.legacyRegistry.register(bundleName, {
|
openmct.legacyRegistry.register(bundleName, {
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"constants": [
|
"constants": [
|
||||||
@ -61,8 +61,9 @@ define([
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
openmct.legacyRegistry.enable(bundleName);
|
openmct.legacyRegistry.enable(bundleName);
|
||||||
|
}
|
||||||
|
|
||||||
openmct.legacyRegistry.enable(bundleMap.elasticsearch);
|
openmct.legacyRegistry.enable(bundleMap.elasticsearch);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user