|
|
|
@ -50,12 +50,6 @@ class LogFilesConnector extends Component {
|
|
|
|
|
this.props.fetchLogFiles();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidUpdate(prevProps) {
|
|
|
|
|
if (prevProps.deleteFilesExecuting && !this.props.deleteFilesExecuting) {
|
|
|
|
|
this.props.fetchLogFiles();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Listeners
|
|
|
|
|
|
|
|
|
@ -64,7 +58,14 @@ class LogFilesConnector extends Component {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
onDeleteFilesPress = () => {
|
|
|
|
|
this.props.executeCommand({ name: commandNames.DELETE_LOG_FILES });
|
|
|
|
|
this.props.executeCommand({
|
|
|
|
|
name: commandNames.DELETE_LOG_FILES,
|
|
|
|
|
commandFinished: this.onCommandFinished
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
onCommandFinished = () => {
|
|
|
|
|
this.props.fetchLogFiles();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|