mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
New: Cancel tasks in command queue
This commit is contained in:
@@ -6,7 +6,8 @@ function createCommandExecutingSelector(name, contraints = {}) {
|
||||
return createSelector(
|
||||
createCommandsSelector(),
|
||||
(commands) => {
|
||||
return isCommandExecuting(findCommand(commands, { name, ...contraints }));
|
||||
const command = findCommand(commands, { name, ...contraints });
|
||||
return isCommandExecuting(command);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user