mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-10 15:04:25 +08:00
Revert wording in code formatting configuration (#681)
This commit is contained in:
parent
28995a0119
commit
6bf2f9cb7a
1 changed files with 5 additions and 5 deletions
|
@ -26,9 +26,9 @@ defmodule LivebookWeb.SessionLive.ElixirCellSettingsComponent do
|
|||
<form phx-submit="save" phx-target={@myself}>
|
||||
<div class="w-full flex-col space-y-6">
|
||||
<.switch_checkbox
|
||||
name="disable_formatting"
|
||||
label="Disable code formatting (when saving to file)"
|
||||
checked={@disable_formatting} />
|
||||
name="enable_formatting"
|
||||
label="Format code when saving to file"
|
||||
checked={not @disable_formatting} />
|
||||
</div>
|
||||
<div class="w-full flex-col space-y-6 mt-4">
|
||||
<.switch_checkbox
|
||||
|
@ -51,12 +51,12 @@ defmodule LivebookWeb.SessionLive.ElixirCellSettingsComponent do
|
|||
def handle_event(
|
||||
"save",
|
||||
%{
|
||||
"disable_formatting" => disable_formatting,
|
||||
"enable_formatting" => enable_formatting,
|
||||
"reevaluate_automatically" => reevaluate_automatically
|
||||
},
|
||||
socket
|
||||
) do
|
||||
disable_formatting = disable_formatting == "true"
|
||||
disable_formatting = enable_formatting == "false"
|
||||
reevaluate_automatically = reevaluate_automatically == "true"
|
||||
|
||||
Session.set_cell_attributes(socket.assigns.session.pid, socket.assigns.cell.id, %{
|
||||
|
|
Loading…
Add table
Reference in a new issue