mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3555 Primitives | Show Types in the All Objects tab (#2297)
This commit is contained in:
parent
40ac22f003
commit
6fcbe663cd
3 changed files with 4 additions and 3 deletions
|
@ -199,7 +199,7 @@ suspend fun ObjectWrapper.Basic.toAllContentItem(
|
|||
return UiContentItem.Item(
|
||||
id = obj.id,
|
||||
space = space,
|
||||
name = fieldParser.getObjectName(obj),
|
||||
name = fieldParser.getObjectNameOrPluralsForTypes(obj),
|
||||
description = getDescriptionOrSnippet(),
|
||||
type = typeUrl,
|
||||
typeName = objectTypes.firstOrNull { type ->
|
||||
|
|
|
@ -25,7 +25,8 @@ val allContentTabLayouts = mapOf(
|
|||
),
|
||||
AllContentTab.LISTS to listOf(
|
||||
ObjectType.Layout.SET,
|
||||
ObjectType.Layout.COLLECTION
|
||||
ObjectType.Layout.COLLECTION,
|
||||
ObjectType.Layout.OBJECT_TYPE,
|
||||
),
|
||||
AllContentTab.FILES to listOf(
|
||||
ObjectType.Layout.FILE,
|
||||
|
|
|
@ -332,7 +332,7 @@ class ObjectTypeViewModel(
|
|||
_objectTypePermissionsState.value = objectPermissions
|
||||
|
||||
uiTitleState.value = UiTitleState(
|
||||
title = objType.pluralName.orEmpty(),
|
||||
title = fieldParser.getObjectPluralName(objType),
|
||||
isEditable = objectPermissions.canEditDetails
|
||||
)
|
||||
val newIcon = objType.objectIcon()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue