1
0
Fork 0
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:
Mikhail 2023-02-08 17:42:04 +03:00 committed by GitHub
parent 790d22fda2
commit 709d081008
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 7 deletions

View file

@ -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
)
)
}
)
)

View file

@ -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()