Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3688,14 +3688,14 @@ class EditorViewModel(

mode = EditorMode.Edit

controlPanelInteractor.onEvent(ControlPanelMachine.Event.SAM.OnApply)
controlPanelInteractor.onEvent(OnApply)

viewModelScope.launch {
val blocks = (selected - exclude).sortedBy { id -> ordering[id] }
orchestrator.proxies.intents.send(
Intent.Document.Move(
context = context,
target = moveTarget,
target = if (targetContext != vmParams.ctx) "" else target,
targetContext = targetContext,
blocks = blocks,
position = position
Expand Down Expand Up @@ -3723,7 +3723,7 @@ class EditorViewModel(

mode = EditorMode.Edit

controlPanelInteractor.onEvent(ControlPanelMachine.Event.SAM.OnApply)
controlPanelInteractor.onEvent(OnApply)

viewModelScope.launch {
orchestrator.proxies.intents.send(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ class EditorScrollAndMoveTest : EditorPresentationTestSetup() {
params = Move.Params(
context = root,
targetContext = b.content<Block.Content.Link>().target,
targetId = b.id,
targetId = "",
blockIds = listOf(a.id),
position = Position.INNER
)
Expand Down
Loading