mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-04 05:43:38 +09:00
Keep an unsent message as a draft while switching rooms
The composer stores what's being written in localStorage per room and restores it when the room is opened again. Sending clears it.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
"permitted-attachment-types": "application/vnd.campfire.mention application/vnd.actiontext.opengraph-embed",
|
||||
data: {
|
||||
controller: "unfurl",
|
||||
action: "#{rich_text_data_actions} lexxy:insert-link->unfurl#unfurl",
|
||||
action: "#{rich_text_data_actions} lexxy:change->composer#saveDraft lexxy:insert-link->unfurl#unfurl",
|
||||
composer_target: "text" } do %>
|
||||
<%= mention_prompt_tag room %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user