Hide after selecting "undo"

This commit is contained in:
Jorge Manrubia
2025-06-26 00:41:46 +02:00
parent 8ea6a656e1
commit dbd4d166e5
+1 -1
View File
@@ -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 %>