Skip to content

Commit

Permalink
adding default values on top of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoesteves committed Dec 4, 2024
1 parent 1f336fc commit 5dce0f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/deployex_web/live/tracing/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ defmodule DeployexWeb.TracingLive do
alias Deployex.Tracer, as: DeployexT
alias DeployexWeb.Components.MultiSelectList

@default_max_messages "3"
@default_session_timeout_seconds "30"

@impl true
def render(assigns) do
unselected_services_keys =
Expand Down Expand Up @@ -500,7 +503,10 @@ defmodule DeployexWeb.TracingLive do
end

defp default_form_options do
%{"max_messages" => "3", "session_timeout_seconds" => "30"}
%{
"max_messages" => @default_max_messages,
"session_timeout_seconds" => @default_session_timeout_seconds
}
end

defp node_info_new do
Expand Down

0 comments on commit 5dce0f7

Please sign in to comment.