Generate render tool.
This commit is contained in:
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];
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user