We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4653515 commit fd89332Copy full SHA for fd89332
1 file changed
lib/live_debugger_web/components/navbar.ex
@@ -116,7 +116,16 @@ defmodule LiveDebuggerWeb.Components.Navbar do
116
117
def connected(assigns) do
118
~H"""
119
- <.tooltip id={@id} position="bottom" content="Shows if debugged LiveView process is still alive.">
+ <.tooltip
120
+ id={@id}
121
+ position="bottom"
122
+ content={
123
+ if(@connected?,
124
+ do: "LiveView process is alive.",
125
+ else: "LiveView process is dead. You can still debug the last state."
126
+ )
127
+ }
128
+ >
129
<div id={@id} class="flex items-center gap-1 text-xs text-primary">
130
<.status_icon connected?={@connected?} />
131
<%= if @connected? do %>
0 commit comments