diff --git a/core-models/src/main/java/com/anytypeio/anytype/core_models/Block.kt b/core-models/src/main/java/com/anytypeio/anytype/core_models/Block.kt index 35dd13b8e8..9776d4d920 100644 --- a/core-models/src/main/java/com/anytypeio/anytype/core_models/Block.kt +++ b/core-models/src/main/java/com/anytypeio/anytype/core_models/Block.kt @@ -302,7 +302,12 @@ data class Block( val coverRelationKey: String? = null ) { - enum class Type { GRID, LIST, GALLERY, BOARD } + enum class Type(val formattedName: String) { + GRID("Grid"), + LIST("List"), + GALLERY("Gallery"), + BOARD("Board") + } enum class Size { SMALL, MEDIUM, LARGE } diff --git a/presentation/src/main/java/com/anytypeio/anytype/presentation/sets/CreateDataViewViewerViewModel.kt b/presentation/src/main/java/com/anytypeio/anytype/presentation/sets/CreateDataViewViewerViewModel.kt index eb17bb972d..8177b01f47 100644 --- a/presentation/src/main/java/com/anytypeio/anytype/presentation/sets/CreateDataViewViewerViewModel.kt +++ b/presentation/src/main/java/com/anytypeio/anytype/presentation/sets/CreateDataViewViewerViewModel.kt @@ -44,7 +44,7 @@ class CreateDataViewViewerViewModel( }, success = { dispatcher.send(it).also { - sendAnalyticsAddViewEvent(analytics, dvType.name) + sendAnalyticsAddViewEvent(analytics, dvType.formattedName) state.value = ViewState.Completed } }