From dbd4d166e5ed566fb3c5b60a4e89d34166b78063 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 26 Jun 2025 00:41:46 +0200 Subject: [PATCH] Hide after selecting "undo" --- app/views/commands/_command.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/commands/_command.html.erb b/app/views/commands/_command.html.erb index 7f4fda5bb..252572859 100644 --- a/app/views/commands/_command.html.erb +++ b/app/views/commands/_command.html.erb @@ -6,6 +6,6 @@ <% if command.undoable? %> <%= button_to "Undo", command_undo_path(command), class: "btn btn--plain terminal__button flex-item-justify-end", - data: { turbo_confirm: "Are you sure you want to undo '#{command.title}'?", turbo_frame: "_top" } %> + data: { action: "toggle-class#remove", turbo_confirm: "Are you sure you want to undo '#{command.title}'?", turbo_frame: "_top" } %> <% end %> <% end %>