mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3239 Participant card | UI + logic (#1992)
This commit is contained in:
parent
28bc323b73
commit
9ded869c33
59 changed files with 950 additions and 69 deletions
|
@ -8,6 +8,7 @@ sealed class 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()
|
||||
data class NavigateToParticipant(val objectId: Id, val space: SpaceId) : DateObjectCommand()
|
||||
data object TypeSelectionScreen : DateObjectCommand()
|
||||
data object ExitToSpaceWidgets : DateObjectCommand()
|
||||
sealed class SendToast : DateObjectCommand() {
|
||||
|
|
|
@ -631,6 +631,15 @@ class DateObjectViewModel(
|
|||
)
|
||||
}
|
||||
|
||||
is OpenObjectNavigation.OpenParticipant -> {
|
||||
effects.emit(
|
||||
DateObjectCommand.NavigateToParticipant(
|
||||
objectId = navigation.target,
|
||||
space = SpaceId(navigation.space)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
is OpenObjectNavigation.OpenEditor -> {
|
||||
effects.emit(
|
||||
DateObjectCommand.NavigateToEditor(
|
||||
|
@ -658,7 +667,7 @@ class DateObjectViewModel(
|
|||
Timber.e("Object id is missing")
|
||||
}
|
||||
|
||||
is OpenObjectNavigation.OpenDataObject -> {
|
||||
is OpenObjectNavigation.OpenDateObject -> {
|
||||
effects.emit(
|
||||
DateObjectCommand.NavigateToEditor(
|
||||
id = navigation.target,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue