mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
New: Cancel tasks in command queue
This commit is contained in:
@@ -176,6 +176,7 @@ export const actionHandlers = handleThunks({
|
||||
}
|
||||
});
|
||||
|
||||
dispatch(updateItem({ section: 'commands', ...payload }));
|
||||
scheduleRemoveCommand(payload, dispatch);
|
||||
showCommandMessage(payload, dispatch);
|
||||
}
|
||||
|
||||
@@ -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