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:
Johnny5 2023-06-17 12:11:07 -05:00 committed by GitHub
parent 22ba472e40
commit d6be46dd91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -33,7 +33,7 @@ const Cell = {
// Setup action handlers
if (this.props.type === "code") {
if (["code", "smart"].includes(this.props.type)) {
const amplifyButton = this.el.querySelector(
`[data-el-amplify-outputs-button]`
);

View file

@ -76,8 +76,8 @@ defmodule LivebookWeb.SessionLive.CellComponent do
<div :if={@cell_view.language == :erlang} class="grayscale">
<.cell_icon cell_type={:code} language={:erlang} />
</div>
<.amplify_output_button />
<.cell_settings_button cell_id={@cell_view.id} session_id={@session_id} />
<.amplify_output_button />
<.cell_link_button cell_id={@cell_view.id} />
<.move_cell_up_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>
<.toggle_source_button />
<.convert_smart_cell_button cell_id={@cell_view.id} />
<.amplify_output_button />
<.cell_link_button cell_id={@cell_view.id} />
<.move_cell_up_button cell_id={@cell_view.id} />
<.move_cell_down_button cell_id={@cell_view.id} />