mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2905 Navigation | Enhancement | Object type navigation (#2194)
This commit is contained in:
parent
9e809c7b8c
commit
9091ad57ee
16 changed files with 138 additions and 4 deletions
|
@ -5,6 +5,7 @@ import com.anytypeio.anytype.core_models.primitives.SpaceId
|
|||
|
||||
sealed class DateObjectCommand {
|
||||
data class OpenChat(val target: Id, val space: SpaceId) : DateObjectCommand()
|
||||
data class OpenType(val target: Id, val space: SpaceId) : DateObjectCommand()
|
||||
data class NavigateToEditor(val id: Id, val space: SpaceId) : DateObjectCommand()
|
||||
data class NavigateToSetOrCollection(val id: Id, val space: SpaceId) : DateObjectCommand()
|
||||
data class NavigateToDateObject(val objectId: Id, val space: SpaceId) : DateObjectCommand()
|
||||
|
|
|
@ -666,7 +666,14 @@ class DateObjectViewModel(
|
|||
)
|
||||
)
|
||||
}
|
||||
|
||||
is OpenObjectNavigation.OpenType -> {
|
||||
effects.emit(
|
||||
DateObjectCommand.OpenType(
|
||||
target = navigation.target,
|
||||
space = SpaceId(navigation.space)
|
||||
)
|
||||
)
|
||||
}
|
||||
OpenObjectNavigation.NonValidObject -> {
|
||||
Timber.e("Object id is missing")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue