Generate render tool.

This commit is contained in:
James A. Petts committed 2020-06-05 17:36:11 +02:00
1 parent 7bd041a02c
commit f4470c9625
13 files changed
+612 -47

No files matched your search

@@ -17,9 +17,12 @@ export default class ExtensionManager {
this.modules[moduleType] = [];
});
this.dataSourceMap = {};
this.defaultDataSourceName = appConfig.defaultDataSourceName;
this.activeDataSource = undefined;
}
console.log('modules map');
console.log(this.modulesMap);
setActiveDataSource(dataSourceName) {
this.activeDataSource = dataSourceName;
}
/**
@@ -137,6 +140,10 @@ export default class ExtensionManager {
};
getDataSources = dataSourceName => {
if (dataSourceName === undefined) {
dataSourceName = this.activeDataSource;
}
// Note: this currently uses the data source name, which feels weird...
return this.dataSourceMap[dataSourceName];
};