This commit is contained in:
Jorge Manrubia
2025-05-07 12:13:45 +02:00
parent ba1aa60423
commit 4d2f2067ed
+4 -2
View File
@@ -1,7 +1,9 @@
<li class="min-width full-width flex gap-half terminal__item justify-start">
<button class="btn btn--plain overflow-ellipsis terminal__command flex-item-grow justify-start" data-action="toggle-class#remove terminal#restoreCommand" data-line="<%= command.line %>"><%= command.title %></button>
<%= button_tag command.title, type: "button", class: "btn btn--plain overflow-ellipsis terminal__command flex-item-grow justify-start",
data: { action: "toggle-class#remove terminal#restoreCommand", line: command.line } %>
<% 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" } %>
<%= 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" } %>
<% end %>
</li>