mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 21:16:26 +08:00
Show amplify button for Smart cells (#1984)
Co-authored-by: José Valim <jose.valim@gmail.com> Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
This commit is contained in:
parent
22ba472e40
commit
d6be46dd91
2 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,7 @@ const Cell = {
|
||||||
|
|
||||||
// Setup action handlers
|
// Setup action handlers
|
||||||
|
|
||||||
if (this.props.type === "code") {
|
if (["code", "smart"].includes(this.props.type)) {
|
||||||
const amplifyButton = this.el.querySelector(
|
const amplifyButton = this.el.querySelector(
|
||||||
`[data-el-amplify-outputs-button]`
|
`[data-el-amplify-outputs-button]`
|
||||||
);
|
);
|
||||||
|
|
|
@ -76,8 +76,8 @@ defmodule LivebookWeb.SessionLive.CellComponent do
|
||||||
<div :if={@cell_view.language == :erlang} class="grayscale">
|
<div :if={@cell_view.language == :erlang} class="grayscale">
|
||||||
<.cell_icon cell_type={:code} language={:erlang} />
|
<.cell_icon cell_type={:code} language={:erlang} />
|
||||||
</div>
|
</div>
|
||||||
<.amplify_output_button />
|
|
||||||
<.cell_settings_button cell_id={@cell_view.id} session_id={@session_id} />
|
<.cell_settings_button cell_id={@cell_view.id} session_id={@session_id} />
|
||||||
|
<.amplify_output_button />
|
||||||
<.cell_link_button cell_id={@cell_view.id} />
|
<.cell_link_button cell_id={@cell_view.id} />
|
||||||
<.move_cell_up_button cell_id={@cell_view.id} />
|
<.move_cell_up_button cell_id={@cell_view.id} />
|
||||||
<.move_cell_down_button cell_id={@cell_view.id} />
|
<.move_cell_down_button cell_id={@cell_view.id} />
|
||||||
|
@ -171,6 +171,7 @@ defmodule LivebookWeb.SessionLive.CellComponent do
|
||||||
<:secondary>
|
<:secondary>
|
||||||
<.toggle_source_button />
|
<.toggle_source_button />
|
||||||
<.convert_smart_cell_button cell_id={@cell_view.id} />
|
<.convert_smart_cell_button cell_id={@cell_view.id} />
|
||||||
|
<.amplify_output_button />
|
||||||
<.cell_link_button cell_id={@cell_view.id} />
|
<.cell_link_button cell_id={@cell_view.id} />
|
||||||
<.move_cell_up_button cell_id={@cell_view.id} />
|
<.move_cell_up_button cell_id={@cell_view.id} />
|
||||||
<.move_cell_down_button cell_id={@cell_view.id} />
|
<.move_cell_down_button cell_id={@cell_view.id} />
|
||||||
|
|
Loading…
Add table
Reference in a new issue