mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Cancel tasks in command queue
This commit is contained in:
parent
61387b3d44
commit
9d2fbddc7d
5 changed files with 33 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue