mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +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) {
|
||||
return function (openmct) {
|
||||
if (url) {
|
||||
var bundleName = "config/elastic";
|
||||
|
||||
openmct.legacyRegistry.register(bundleName, {
|
||||
"extensions": {
|
||||
"constants": [
|
||||
@ -61,8 +61,9 @@ define([
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
openmct.legacyRegistry.enable(bundleName);
|
||||
}
|
||||
|
||||
openmct.legacyRegistry.enable(bundleMap.elasticsearch);
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user