Skip to content

Commit fd89332

Browse files
committed
change tooltip info
1 parent 4653515 commit fd89332

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

lib/live_debugger_web/components/navbar.ex

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,16 @@ defmodule LiveDebuggerWeb.Components.Navbar do
116116

117117
def connected(assigns) do
118118
~H"""
119-
<.tooltip id={@id} position="bottom" content="Shows if debugged LiveView process is still alive.">
119+
<.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+
>
120129
<div id={@id} class="flex items-center gap-1 text-xs text-primary">
121130
<.status_icon connected?={@connected?} />
122131
<%= if @connected? do %>

0 commit comments

Comments
 (0)