Skip to content

Commit 26bbee1

Browse files
committed
Fixed cancel button in requests
1 parent 1e875bb commit 26bbee1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/views/requests/_request_row.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
</td>
2323
<td class="text-right">
2424
<%= view_button_to request_path(request_row) %>
25-
<%= cancel_button_to new_request_cancelation_path(request_id: request_row.id), method: :get, data: { disable_with: "Please wait..." } %>
26-
<%= button_to 'Cancel', new_request_cancelation_path(request_id: request_row.id), method: :get, data: { disable_with: "Please wait..." }, class: 'btn btn-danger btn-xs' %>
25+
<%= cancel_button_to new_request_cancelation_path(request_id: request_row.id), method: :get, data: { disable_with: "Please wait..." }, size: "xs", type: "danger" %>
2726
<%= print_button_to print_picklist_request_path(request_row), { format: :pdf, text: "Print", size: "xs" } %>
2827
</td>
2928
</tr>

0 commit comments

Comments
 (0)