geo-therminator/lib/geo_therminator_web/live/main/pump.html.heex

16 lines
378 B
Text

<%= 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.record(@device, :id)}"}
device={@device}
status={@status}
registers={@registers}
opstat={@opstat}
/>
<% end %>
<% end %>