mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2764 Editor | Fix | DND fixes (#1937)
This commit is contained in:
parent
ba86623c70
commit
4dcee0201c
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
@ -3723,7 +3723,7 @@ class EditorViewModel(
|
|||
|
||||
mode = EditorMode.Edit
|
||||
|
||||
controlPanelInteractor.onEvent(ControlPanelMachine.Event.SAM.OnApply)
|
||||
controlPanelInteractor.onEvent(OnApply)
|
||||
|
||||
viewModelScope.launch {
|
||||
orchestrator.proxies.intents.send(
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue