mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Clearing logs not updating UI once complete
(cherry picked from commit 56b3acddc9f50f59c78c03ca072fe802752b88a7)
This commit is contained in:
@@ -96,7 +96,14 @@ class LogsTableConnector extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
onClearLogsPress = () => {
|
onClearLogsPress = () => {
|
||||||
this.props.executeCommand({ name: commandNames.CLEAR_LOGS });
|
this.props.executeCommand({
|
||||||
|
name: commandNames.CLEAR_LOGS,
|
||||||
|
commandFinished: this.onCommandFinished
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
onCommandFinished = () => {
|
||||||
|
this.props.gotoLogsFirstPage();
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@@ -50,12 +50,6 @@ class LogFilesConnector extends Component {
|
|||||||
this.props.fetchLogFiles();
|
this.props.fetchLogFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
|
||||||
if (prevProps.deleteFilesExecuting && !this.props.deleteFilesExecuting) {
|
|
||||||
this.props.fetchLogFiles();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Listeners
|
// Listeners
|
||||||
|
|
||||||
@@ -64,7 +58,14 @@ class LogFilesConnector extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
onDeleteFilesPress = () => {
|
onDeleteFilesPress = () => {
|
||||||
this.props.executeCommand({ name: commandNames.DELETE_LOG_FILES });
|
this.props.executeCommand({
|
||||||
|
name: commandNames.DELETE_LOG_FILES,
|
||||||
|
commandFinished: this.onCommandFinished
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
onCommandFinished = () => {
|
||||||
|
this.props.fetchLogFiles();
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user