mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 13:51:50 +01:00
RemoveMangaDialog: Show manga title in dialog message (#8163)
This commit is contained in:
parent
b95a30e424
commit
737d0fb8f3
@ -1,18 +1,20 @@
|
|||||||
package eu.kanade.presentation.browse.components
|
package eu.kanade.presentation.browse.components
|
||||||
|
|
||||||
import androidx.compose.material.TextButton
|
|
||||||
import androidx.compose.material3.AlertDialog
|
import androidx.compose.material3.AlertDialog
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
|
import androidx.compose.material3.TextButton
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.getValue
|
import androidx.compose.runtime.getValue
|
||||||
import androidx.compose.runtime.setValue
|
import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
|
import eu.kanade.domain.manga.model.Manga
|
||||||
import eu.kanade.tachiyomi.R
|
import eu.kanade.tachiyomi.R
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun RemoveMangaDialog(
|
fun RemoveMangaDialog(
|
||||||
onDismissRequest: () -> Unit,
|
onDismissRequest: () -> Unit,
|
||||||
onConfirm: () -> Unit,
|
onConfirm: () -> Unit,
|
||||||
|
mangaToRemove: Manga,
|
||||||
) {
|
) {
|
||||||
AlertDialog(
|
AlertDialog(
|
||||||
onDismissRequest = onDismissRequest,
|
onDismissRequest = onDismissRequest,
|
||||||
@ -35,7 +37,7 @@ fun RemoveMangaDialog(
|
|||||||
Text(text = stringResource(R.string.are_you_sure))
|
Text(text = stringResource(R.string.are_you_sure))
|
||||||
},
|
},
|
||||||
text = {
|
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 = {
|
onConfirm = {
|
||||||
presenter.changeMangaFavorite(dialog.manga)
|
presenter.changeMangaFavorite(dialog.manga)
|
||||||
},
|
},
|
||||||
|
mangaToRemove = dialog.manga,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
is Dialog.ChangeMangaCategory -> {
|
is Dialog.ChangeMangaCategory -> {
|
||||||
|
@ -876,5 +876,5 @@
|
|||||||
<!-- App widget -->
|
<!-- App widget -->
|
||||||
<string name="appwidget_updates_description">See your recently updated manga</string>
|
<string name="appwidget_updates_description">See your recently updated manga</string>
|
||||||
<string name="appwidget_unavailable_locked">Widget not available when app lock is enabled</string>
|
<string name="appwidget_unavailable_locked">Widget not available when app lock is enabled</string>
|
||||||
<string name="remove_manga">You are about to remove this manga from your library</string>
|
<string name="remove_manga">You are about to remove \"%s\" from your library</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user