feat(recipes): restore Copy Recipe Syntax button in recipe modal header

- Add an icon-only copy button next to Send to ComfyUI in the header
  actions row, styled as a textless variant of the neighboring pill
  buttons
- Restore fetchAndCopyRecipeSyntax() wiring against the existing
  /api/lm/recipe/{id}/syntax endpoint (context menu action unaffected)
- Add recipes.actions.copyRecipeSyntax i18n key, reusing the existing
  per-locale translations of the identical context menu string
- Sync modal test fixtures and add copySyntax tests
This commit is contained in:
Will Miao
2026-08-29 17:05:31 +08:00
parent 675421ea84
commit fc9088bfd6
15 changed files with 223 additions and 1 deletions
+1
View File
@@ -860,6 +860,7 @@
"actions": {
"sendCheckpoint": "Send to ComfyUI",
"sendRecipe": "Send to ComfyUI",
"copyRecipeSyntax": "Rezept-Syntax kopieren",
"deleteRecipeWithShortcut": "Rezept löschen (Del)"
},
"navigation": {