1
0
Fork 0
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:
Sonja Happ 2020-05-29 11:53:29 +02:00
parent 7dcec9983b
commit 5e607f77d0
2 changed files with 0 additions and 14 deletions

View file

@ -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':

View file

@ -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();