mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
Revert "refactor: remove unused name field from LibraryDto"
This reverts commit 8a1d5ccfab.
This commit is contained in:
@@ -52,7 +52,7 @@ fun TvAppScreen(
|
||||
)
|
||||
) + libraries.map { library ->
|
||||
val destination = Route.LibraryRoute(
|
||||
library = LibraryDto(id = library.id)
|
||||
library = LibraryDto(id = library.id, name = library.name)
|
||||
)
|
||||
TvDrawerDestinationItem(
|
||||
destination = destination,
|
||||
|
||||
@@ -163,7 +163,7 @@ class AppViewModel @Inject constructor(
|
||||
|
||||
fun onLibrarySelected(id: UUID, name: String) {
|
||||
viewModelScope.launch {
|
||||
navigationManager.navigate(Route.LibraryRoute(library = LibraryDto(id = id)))
|
||||
navigationManager.navigate(Route.LibraryRoute(library = LibraryDto(id = id, name = name)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
package hu.bbara.purefin.navigation
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
import java.util.UUID
|
||||
import kotlinx.serialization.Serializable
|
||||
import hu.bbara.purefin.navigation.UuidSerializer
|
||||
|
||||
@Serializable
|
||||
data class LibraryDto(
|
||||
@Serializable(with = UuidSerializer::class)
|
||||
val id: UUID,
|
||||
val name: String,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user