fix: issue #20 cmd-J panel tab strip visibility and output panel parity
This commit is contained in:
@@ -206,11 +206,17 @@ defmodule BDS.Desktop.ShellLive.ScriptEditor do
|
||||
%Script{} = script ->
|
||||
draft = current_draft(socket.assigns, script)
|
||||
|
||||
# The sandbox runs in its own process, so streamed script output is
|
||||
# routed back to this LiveView explicitly.
|
||||
live_view = self()
|
||||
title = dgettext("ui", "Scripts")
|
||||
|
||||
case Scripting.execute_project_script(
|
||||
script.project_id,
|
||||
draft["content"] || "",
|
||||
draft["entrypoint"] || "main",
|
||||
[]
|
||||
[],
|
||||
on_output: fn text -> Notify.output_to(live_view, title, text, nil, "info") end
|
||||
) do
|
||||
{:ok, result} ->
|
||||
notify_output(socket, dgettext("ui", "Scripts"), inspect(result))
|
||||
|
||||
Reference in New Issue
Block a user