mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 18:57:01 +00:00
[Plugins] Allow CouchDB URL to be specified
This commit is contained in:
parent
c7ae520d7e
commit
077f076c43
@ -41,6 +41,21 @@ define([
|
|||||||
|
|
||||||
plugins.CouchDB = function (url) {
|
plugins.CouchDB = function (url) {
|
||||||
return function (openmct) {
|
return function (openmct) {
|
||||||
|
if (url) {
|
||||||
|
var bundleName = "config/couch";
|
||||||
|
openmct.legacyRegistry.register(bundleName, {
|
||||||
|
"extensions": {
|
||||||
|
"constants": [
|
||||||
|
{
|
||||||
|
"key": "COUCH_PATH",
|
||||||
|
"value": url,
|
||||||
|
"priority": "mandatory"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
});
|
||||||
|
openmct.legacyRegistry.enable(bundleName);
|
||||||
|
}
|
||||||
|
|
||||||
openmct.legacyRegistry.enable(bundleMap.couchDB);
|
openmct.legacyRegistry.enable(bundleMap.couchDB);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user