mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-20 10:05:57 +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
|
@ -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]`
|
||||
);
|
||||
|
|
|
@ -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} />
|
||||
|
|
Loading…
Reference in a new issue