1
0

Fixed creating/updating with MeasurementRoutine

Updated Measurement links with :view
This commit is contained in:
cryptogopher
2020-04-03 18:34:39 +02:00
parent 9f63c14f8a
commit 14f4c063de
7 changed files with 24 additions and 20 deletions

View File

@@ -31,10 +31,10 @@ module MeasurementsHelper
end
end
def action_links(m)
link_to(l(:button_retake), retake_measurement_path(m),
def action_links(m, view)
link_to(l(:button_retake), retake_measurement_path(m, view: view),
{remote: true, class: "icon icon-reload"}) +
link_to(l(:button_edit), edit_measurement_path(m),
link_to(l(:button_edit), edit_measurement_path(m, view: view),
{remote: true, class: "icon icon-edit"}) +
delete_link(measurement_path(m), {remote: true, data: {}})
end