mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	RemoveMangaDialog: Show manga title in dialog message (#8163)
This commit is contained in:
		| @@ -1,18 +1,20 @@ | ||||
| package eu.kanade.presentation.browse.components | ||||
|  | ||||
| import androidx.compose.material.TextButton | ||||
| import androidx.compose.material3.AlertDialog | ||||
| import androidx.compose.material3.Text | ||||
| import androidx.compose.material3.TextButton | ||||
| import androidx.compose.runtime.Composable | ||||
| import androidx.compose.runtime.getValue | ||||
| import androidx.compose.runtime.setValue | ||||
| import androidx.compose.ui.res.stringResource | ||||
| import eu.kanade.domain.manga.model.Manga | ||||
| import eu.kanade.tachiyomi.R | ||||
|  | ||||
| @Composable | ||||
| fun RemoveMangaDialog( | ||||
|     onDismissRequest: () -> Unit, | ||||
|     onConfirm: () -> Unit, | ||||
|     mangaToRemove: Manga, | ||||
| ) { | ||||
|     AlertDialog( | ||||
|         onDismissRequest = onDismissRequest, | ||||
| @@ -35,7 +37,7 @@ fun RemoveMangaDialog( | ||||
|             Text(text = stringResource(R.string.are_you_sure)) | ||||
|         }, | ||||
|         text = { | ||||
|             Text(text = stringResource(R.string.remove_manga)) | ||||
|             Text(text = stringResource(R.string.remove_manga, mangaToRemove.title)) | ||||
|         }, | ||||
|     ) | ||||
| } | ||||
|   | ||||
| @@ -91,6 +91,7 @@ open class BrowseSourceController(bundle: Bundle) : | ||||
|                     onConfirm = { | ||||
|                         presenter.changeMangaFavorite(dialog.manga) | ||||
|                     }, | ||||
|                     mangaToRemove = dialog.manga, | ||||
|                 ) | ||||
|             } | ||||
|             is Dialog.ChangeMangaCategory -> { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user