mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
scenarioID not necessary when removing result files
This commit is contained in:
parent
f968c0221c
commit
4038a998df
3 changed files with 2 additions and 4 deletions
|
@ -113,7 +113,6 @@ class EditResultDialog extends React.Component {
|
|||
type: 'resultfiles/start-remove',
|
||||
resultID: this.state.id,
|
||||
fileID: file.id,
|
||||
scenarioID: this.props.scenarioID,
|
||||
token: this.props.sessionToken
|
||||
});
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ class ResultStore extends ArrayStore {
|
|||
return state;
|
||||
|
||||
case 'resultfiles/start-remove':
|
||||
ResultsDataManager.removeFile(action.resultID, action.fileID, action.scenarioID, action.token);
|
||||
ResultsDataManager.removeFile(action.resultID, action.fileID, action.token);
|
||||
return state;
|
||||
|
||||
default:
|
||||
|
|
|
@ -57,7 +57,7 @@ class ResultsDataManager extends RestDataManager {
|
|||
});
|
||||
}
|
||||
|
||||
removeFile(resultID, fileID, scenarioID, token) {
|
||||
removeFile(resultID, fileID, token) {
|
||||
RestAPI.delete(this.makeURL(this.url + '/' + resultID + '/file/' + fileID), token).then(response => {
|
||||
// reload result
|
||||
AppDispatcher.dispatch({
|
||||
|
@ -72,7 +72,6 @@ class ResultsDataManager extends RestDataManager {
|
|||
data: fileID,
|
||||
token: token,
|
||||
});
|
||||
console.log(response);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue