mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-10 10:00:44 +09:00
DROID-924 Editor | Fix | Change text to block(s) moved to (#2906)
This commit is contained in:
parent
790d22fda2
commit
709d081008
3 changed files with 16 additions and 7 deletions
|
@ -5069,7 +5069,15 @@ class EditorViewModel(
|
|||
blocks = blocks,
|
||||
position = Position.BOTTOM,
|
||||
onSuccess = {
|
||||
dispatch(Command.OpenObjectSnackbar(id = target, text, icon, isSet))
|
||||
dispatch(
|
||||
Command.OpenObjectSnackbar(
|
||||
id = target,
|
||||
fromText = "${blocks.size} block${if (blocks.size > 1) "s" else ""} ",
|
||||
toText = text,
|
||||
icon,
|
||||
isSet
|
||||
)
|
||||
)
|
||||
}
|
||||
)
|
||||
)
|
||||
|
|
|
@ -36,7 +36,8 @@ sealed class Command {
|
|||
|
||||
data class OpenObjectSnackbar(
|
||||
val id: Id,
|
||||
val text: String,
|
||||
val fromText: String,
|
||||
val toText: String,
|
||||
val icon: ObjectIcon,
|
||||
val isSet: Boolean,
|
||||
) : Command()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue