mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 07:00:23 +00:00
## Summary Moves static data outside the `useJobActions` composable to module-level. ## Changes - **What**: Extracted `cancellableStates` array to a module-level `CANCELLABLE_STATES` constant. The `cancelAction` object remains inside the composable because it depends on `t()` for i18n reactivity. ## Review Focus This is a pure refactor with no behavior change - the constant is now allocated once per module instead of per-composable-call. Fixes #7946 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8570-refactor-move-cancellable-states-to-module-level-constant-2fc6d73d3650814fa1fefa172f7ace2f) by [Unito](https://www.unito.io) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Internal code refactoring to improve maintainability of job cancellation logic. <!-- end of auto-generated comment: release notes by coderabbit.ai -->