Skip to content

Commit

Permalink
LiveView : ne pas passer locale (#3476)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti authored Sep 22, 2023
1 parent 24402b0 commit f60c978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
<% end %>
</td>
<td class="bo_action_button">
<%= live_render(@conn, TransportWeb.Live.ValidateDatasetView,
session: %{"dataset_id" => @dataset.id, "locale" => get_session(@conn, :locale)}
) %>
<%= live_render(@conn, TransportWeb.Live.ValidateDatasetView, session: %{"dataset_id" => @dataset.id}) %>
</td>
<td class="bo_action_button">
<%= form_for @conn, backoffice_page_path(@conn, :edit, @dataset.id), [nodiv: true, method: "get"], fn _ -> %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
</div>

<div>
<%= live_render(@conn, TransportWeb.Live.ValidateDatasetView,
session: %{"dataset_id" => @dataset.id, "locale" => get_session(@conn, :locale)}
) %>
<%= live_render(@conn, TransportWeb.Live.ValidateDatasetView, session: %{"dataset_id" => @dataset.id}) %>
</div>

<div>
Expand All @@ -27,9 +25,7 @@
</div>

<div :if={@dataset.type == "public-transit"}>
<%= live_render(@conn, TransportWeb.Live.ForceNeTExConversion,
session: %{"dataset_id" => @dataset.id, "locale" => get_session(@conn, :locale)}
) %>
<%= live_render(@conn, TransportWeb.Live.ForceNeTExConversion, session: %{"dataset_id" => @dataset.id}) %>
</div>
</div>

Expand Down Expand Up @@ -154,7 +150,6 @@
<%= live_render(@conn, TransportWeb.Live.SendNowOnNAPNotificationView,
session: %{
"dataset_id" => @dataset.id,
"locale" => get_session(@conn, :locale),
"sent_reasons" =>
@notifications_sent |> Enum.map(fn {{reason, _datetime}, _emails} -> reason end) |> Enum.uniq()
}
Expand Down

0 comments on commit f60c978

Please sign in to comment.