1
0
Fork 0
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:
Konstantin Ivanov 2025-04-12 12:15:59 +02:00 committed by GitHub
parent 40ac22f003
commit 6fcbe663cd
Signed by: github
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

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

View file

@ -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,