add Back button on Migration screen

This commit is contained in:
Cuong-Tran 2024-10-29 16:49:02 +07:00
parent cd990df3ee
commit 55906548ee
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
2 changed files with 5 additions and 0 deletions

View file

@ -53,6 +53,7 @@ fun MigrationListScreen(
skipManga: (Long) -> Unit,
// KMK -->
cancelManga: (Long) -> Unit,
navigateUp: () -> Unit,
// KMK <--
searchManually: (MigratingManga) -> Unit,
migrateNow: (Long) -> Unit,
@ -68,6 +69,9 @@ fun MigrationListScreen(
}
AppBar(
title = title,
// KMK -->
navigateUp = navigateUp,
// KMK <--
actions = {
AppBarActions(
persistentListOf(

View file

@ -108,6 +108,7 @@ class MigrationListScreen(private val config: MigrationProcedureConfig) : Screen
skipManga = { screenModel.removeManga(it) },
// KMK -->
cancelManga = { screenModel.cancelManga(it) },
navigateUp = { navigator.pop() },
// KMK <--
searchManually = { migrationItem ->
val sources = screenModel.getMigrationSources()