mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
remove file load from component config
This commit is contained in:
parent
7dcec9983b
commit
5e607f77d0
2 changed files with 0 additions and 14 deletions
|
@ -28,8 +28,6 @@ class ConfigStore extends ArrayStore {
|
|||
switch (action.type) {
|
||||
|
||||
case 'configs/loaded':
|
||||
|
||||
ConfigsDataManager.loadFiles(action.token, action.data);
|
||||
return super.reduce(state, action);
|
||||
|
||||
case 'configs/start-add':
|
||||
|
|
|
@ -56,18 +56,6 @@ class ConfigDataManager extends RestDataManager {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
loadFiles(token, configs){
|
||||
for (let config of configs) {
|
||||
// request files of config
|
||||
RestAPI.get(this.makeURL('/files?scenarioID' + config.scenarioID), token).then(response => {
|
||||
AppDispatcher.dispatch({
|
||||
type: 'files/loaded',
|
||||
data: response.files
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default new ConfigDataManager();
|
||||
|
|
Loading…
Add table
Reference in a new issue