From d6b602b7d7aed85980b4789d78c534f25d2354b3 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Fri, 14 Nov 2025 15:37:43 +0100 Subject: [PATCH] Restore refreshes: make sure they play well with cards in editing mode --- app/models/card/broadcastable.rb | 4 +--- app/views/cards/container/_title.html.erb | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/card/broadcastable.rb b/app/models/card/broadcastable.rb index 2ab18742a..aa24b776c 100644 --- a/app/models/card/broadcastable.rb +++ b/app/models/card/broadcastable.rb @@ -2,8 +2,6 @@ module Card::Broadcastable extend ActiveSupport::Concern included do - # TODO: Temporarily disabled as I need to handle a couple of additional cases - # - # broadcasts_refreshes + broadcasts_refreshes end end diff --git a/app/views/cards/container/_title.html.erb b/app/views/cards/container/_title.html.erb index 98b0b3bb6..19c4727f4 100644 --- a/app/views/cards/container/_title.html.erb +++ b/app/views/cards/container/_title.html.erb @@ -1,5 +1,5 @@ <% if card.published? %> - <%= turbo_frame_tag card, :edit do %> + <%= turbo_frame_tag card, :edit, data: { turbo_permanent: true } do %>

<%= link_to card.title, edit_card_path(card), class: "card__title-link" %>