feat: add loading state to Publish button during workflow publishing

Leverage React Query mutation's isPending to disable the Publish button,
header trigger, and keyboard shortcut while a publish is in progress,
preventing duplicate submissions even when the menu is closed and reopened.
This commit is contained in:
yyh
2026-02-04 14:33:51 +08:00
parent dee3e026a6
commit d84aaff825
4 changed files with 21 additions and 12 deletions

View File

@ -223,6 +223,7 @@
"common.publishUpdate": "Publish Update",
"common.published": "Published",
"common.publishedAt": "Published",
"common.publishing": "Publishing...",
"common.redo": "Redo",
"common.restart": "Restart",
"common.restore": "Restore",