mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-1715 Set | Enhancment | View default object type and templates (#373)
# Conflicts: # core-ui/src/main/java/com/anytypeio/anytype/core_ui/widgets/ObjectTypeTemplatesWidget.kt # presentation/src/main/java/com/anytypeio/anytype/presentation/sets/ObjectSetExtension.kt # presentation/src/main/java/com/anytypeio/anytype/presentation/sets/ObjectSetViewModel.kt
This commit is contained in:
parent
1652dc1b4c
commit
a528fb09a8
12 changed files with 2392 additions and 204 deletions
|
@ -33,7 +33,8 @@ fun StubDataViewView(
|
|||
hideIcon: Boolean = false,
|
||||
coverFit: Boolean = false,
|
||||
coverRelationKey: String? = null,
|
||||
defaultObjectType: Id = ObjectTypeIds.PAGE
|
||||
defaultObjectType: Id? = null,
|
||||
defaultTemplateId: Id? = null
|
||||
): DVViewer = DVViewer(
|
||||
id = id,
|
||||
filters = filters,
|
||||
|
@ -45,7 +46,8 @@ fun StubDataViewView(
|
|||
hideIcon = hideIcon,
|
||||
coverFit = coverFit,
|
||||
coverRelationKey = coverRelationKey,
|
||||
defaultObjectType = defaultObjectType
|
||||
defaultObjectType = defaultObjectType,
|
||||
defaultTemplate = defaultTemplateId
|
||||
)
|
||||
|
||||
fun StubDataViewViewRelation(
|
||||
|
|
|
@ -16,7 +16,8 @@ fun StubObject(
|
|||
iconEmoji: String? = null,
|
||||
isReadOnly: Boolean? = null,
|
||||
isHidden: Boolean? = null,
|
||||
links: List<Id> = emptyList()
|
||||
links: List<Id> = emptyList(),
|
||||
targetObjectType: Id? = null
|
||||
): ObjectWrapper.Basic = ObjectWrapper.Basic(
|
||||
map = mapOf(
|
||||
Relations.ID to id,
|
||||
|
@ -30,7 +31,8 @@ fun StubObject(
|
|||
Relations.ICON_EMOJI to iconEmoji,
|
||||
Relations.IS_READ_ONLY to isReadOnly,
|
||||
Relations.IS_HIDDEN to isHidden,
|
||||
Relations.LINKS to links
|
||||
Relations.LINKS to links,
|
||||
Relations.TARGET_OBJECT_TYPE to targetObjectType
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue