mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-12 07:01:40 +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}>
|
<form phx-submit="save" phx-target={@myself}>
|
||||||
<div class="w-full flex-col space-y-6">
|
<div class="w-full flex-col space-y-6">
|
||||||
<.switch_checkbox
|
<.switch_checkbox
|
||||||
name="disable_formatting"
|
name="enable_formatting"
|
||||||
label="Disable code formatting (when saving to file)"
|
label="Format code when saving to file"
|
||||||
checked={@disable_formatting} />
|
checked={not @disable_formatting} />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full flex-col space-y-6 mt-4">
|
<div class="w-full flex-col space-y-6 mt-4">
|
||||||
<.switch_checkbox
|
<.switch_checkbox
|
||||||
|
|
@ -51,12 +51,12 @@ defmodule LivebookWeb.SessionLive.ElixirCellSettingsComponent do
|
||||||
def handle_event(
|
def handle_event(
|
||||||
"save",
|
"save",
|
||||||
%{
|
%{
|
||||||
"disable_formatting" => disable_formatting,
|
"enable_formatting" => enable_formatting,
|
||||||
"reevaluate_automatically" => reevaluate_automatically
|
"reevaluate_automatically" => reevaluate_automatically
|
||||||
},
|
},
|
||||||
socket
|
socket
|
||||||
) do
|
) do
|
||||||
disable_formatting = disable_formatting == "true"
|
disable_formatting = enable_formatting == "false"
|
||||||
reevaluate_automatically = reevaluate_automatically == "true"
|
reevaluate_automatically = reevaluate_automatically == "true"
|
||||||
|
|
||||||
Session.set_cell_attributes(socket.assigns.session.pid, socket.assigns.cell.id, %{
|
Session.set_cell_attributes(socket.assigns.session.pid, socket.assigns.cell.id, %{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue