18 lines
462 B
Text
18 lines
462 B
Text
<%= live_redirect("« Go back", to: Routes.live_path(@socket, GeoTherminatorWeb.MainLive.Index)) %>
|
|
|
|
<%= if is_nil(@pid) do %>
|
|
Some fail happened.
|
|
<% else %>
|
|
<%= if is_nil(@device) do %>
|
|
Loading pump data…
|
|
<% else %>
|
|
<.live_component
|
|
module={GeoTherminatorWeb.Components.MainView}
|
|
id={"pump-#{@device.id}"}
|
|
device={@device}
|
|
status={@status}
|
|
registers={@registers}
|
|
opstat={@opstat}
|
|
/>
|
|
<% end %>
|
|
<% end %>
|