[Plugins] Expose bundle-enabling plugins

Fixes #1398
This commit is contained in:
Victor Woeltjen 2017-01-12 14:50:55 -08:00
parent d94e8b10d8
commit b6aa087536

View File

@ -21,13 +21,19 @@
*****************************************************************************/
define([
], function () {
return {
localStorage: function (openmct) {
openmct.legacyRegistry.enable('platform/persistence/local');
},
myItems: function (openmct) {
openmct.legacyRegistry.enable('platform/features/my-items');
}
'lodash'
], function (_) {
return _({
couchDB: 'platform/persistence/couch',
elasticsearch: 'platform/persistence/elastic',
espresso: 'platform/commonUI/themes/espresso',
localStorage: 'platform/persistence/local',
myItems: 'platform/features/my-items',
snow: 'platform/commonUI/themes/snow',
utcTimeSystem: 'platform/features/conductor/utcTimeSystem'
}).map(pluginName, bundleName) {
return function (openmct) {
openmct.legacyRegistry.enable(bundleName);
};
};
});