mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-12-16 21:28:03 +08:00
Make reprocess texts more neutral (#2105)
This commit is contained in:
parent
1c98a2a360
commit
01b2c31659
3 changed files with 5 additions and 9 deletions
|
|
@ -189,8 +189,8 @@ defmodule LivebookWeb.AppSessionLive do
|
||||||
class="tooltip left"
|
class="tooltip left"
|
||||||
data-tooltip={
|
data-tooltip={
|
||||||
~S'''
|
~S'''
|
||||||
Some inputs have changed since they were last processed.
|
Some inputs have changed.
|
||||||
Click this button to reprocess with latest values.
|
Click this button to process with latest values.
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -266,11 +266,7 @@ defmodule LivebookWeb.Output.InputComponent do
|
||||||
<.label help={@help}>
|
<.label help={@help}>
|
||||||
<div class="flex items-center justify-between gap-1">
|
<div class="flex items-center justify-between gap-1">
|
||||||
<span><%= @label %></span>
|
<span><%= @label %></span>
|
||||||
<span
|
<span :if={@changed} class="cursor-pointer tooltip top" data-tooltip="This input has changed.">
|
||||||
:if={@changed}
|
|
||||||
class="cursor-pointer tooltip top"
|
|
||||||
data-tooltip="This input has changed since it was last processed."
|
|
||||||
>
|
|
||||||
<.remix_icon icon="error-warning-line text-gray-500" />
|
<.remix_icon icon="error-warning-line text-gray-500" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -749,12 +749,12 @@ defmodule LivebookWeb.SessionLiveTest do
|
||||||
|
|
||||||
{:ok, view, _} = live(conn, ~p"/sessions/#{session.id}")
|
{:ok, view, _} = live(conn, ~p"/sessions/#{session.id}")
|
||||||
|
|
||||||
refute render(view) =~ "This input has changed since it was last processed."
|
refute render(view) =~ "This input has changed."
|
||||||
|
|
||||||
Session.set_input_value(session.pid, input.id, 10)
|
Session.set_input_value(session.pid, input.id, 10)
|
||||||
wait_for_session_update(session.pid)
|
wait_for_session_update(session.pid)
|
||||||
|
|
||||||
assert render(view) =~ "This input has changed since it was last processed."
|
assert render(view) =~ "This input has changed."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue