From 20c735b0c5a2db9b8984848253ad99332d6211a8 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 9 Aug 2026 03:33:55 +0200 Subject: Attach assets to the draft instead of to every lifecycle row Node#attach_asset! writes to the node's draft alone, creating one from the head when none is pending. It refuses when another user holds the lock, and when an autosave already exists The asset_attach verb goes with it. create_new_draft names the editor on the draft it creates and the publish entry's asset delta reports the attachment. --- config/locales/en.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/locales/en.yml') diff --git a/config/locales/en.yml b/config/locales/en.yml index bd339cc9..4bdca31b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -87,6 +87,7 @@ en: destroy_outside_trash: "Nodes are only destroyed from the Trash" attach_in_trash: "Cannot attach assets to a node in the Trash" not_permitted: "Only Redaktion members may change published content in this section" + attach_with_autosave: "Cannot attach assets to a node with unsaved changes in the editor" page: attributes: slug: @@ -627,8 +628,9 @@ en: assets: created: "Asset was successfully created." updated: "Asset was successfully updated." - attached: "Asset was successfully created and attached to “%{title}”." already_attached: "Asset saved — it was already attached to “%{title}”." + attached_to_draft: "Attached to the draft of %{title}. Publish it to make the change live." + attached_new_draft: "Created a draft of %{title} with this attachment. Publish it to make the change live." events: created: "Event was successfully created." updated: "Event was successfully updated." -- cgit v1.3