mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-08 16:55:11 +02:00
Suggestions
This commit is contained in:
@ -16,6 +16,7 @@ import androidx.compose.ui.Modifier
|
|||||||
import androidx.compose.ui.focus.FocusRequester
|
import androidx.compose.ui.focus.FocusRequester
|
||||||
import androidx.compose.ui.focus.focusRequester
|
import androidx.compose.ui.focus.focusRequester
|
||||||
import androidx.compose.ui.text.input.KeyboardType
|
import androidx.compose.ui.text.input.KeyboardType
|
||||||
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
import kotlinx.collections.immutable.ImmutableSet
|
import kotlinx.collections.immutable.ImmutableSet
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
import mihon.domain.extensionrepo.model.ExtensionRepo
|
import mihon.domain.extensionrepo.model.ExtensionRepo
|
||||||
@ -161,6 +162,15 @@ fun ExtensionRepoConfirmDialog(
|
|||||||
) {
|
) {
|
||||||
AlertDialog(
|
AlertDialog(
|
||||||
onDismissRequest = onDismissRequest,
|
onDismissRequest = onDismissRequest,
|
||||||
|
title = {
|
||||||
|
Text(
|
||||||
|
text = stringResource(MR.strings.action_add_repo_confirm),
|
||||||
|
textAlign = TextAlign.Center,
|
||||||
|
)
|
||||||
|
},
|
||||||
|
text = {
|
||||||
|
Text(text = stringResource(MR.strings.add_repo_confirmation, repo))
|
||||||
|
},
|
||||||
confirmButton = {
|
confirmButton = {
|
||||||
TextButton(
|
TextButton(
|
||||||
onClick = {
|
onClick = {
|
||||||
@ -176,11 +186,5 @@ fun ExtensionRepoConfirmDialog(
|
|||||||
Text(text = stringResource(MR.strings.action_cancel))
|
Text(text = stringResource(MR.strings.action_cancel))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
title = {
|
|
||||||
Text(text = stringResource(MR.strings.action_add_repo))
|
|
||||||
},
|
|
||||||
text = {
|
|
||||||
Text(text = stringResource(MR.strings.add_repo_confirmation, repo))
|
|
||||||
},
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -342,6 +342,7 @@
|
|||||||
<string name="label_extension_repos">Extension repos</string>
|
<string name="label_extension_repos">Extension repos</string>
|
||||||
<string name="information_empty_repos">You have no repos set.</string>
|
<string name="information_empty_repos">You have no repos set.</string>
|
||||||
<string name="action_add_repo">Add repo</string>
|
<string name="action_add_repo">Add repo</string>
|
||||||
|
<string name="action_add_repo_confirm">Add repo?</string>
|
||||||
<string name="label_add_repo_input">Repo URL</string>
|
<string name="label_add_repo_input">Repo URL</string>
|
||||||
<string name="action_add_repo_message">Add additional repos to Mihon. This should be a URL that ends with \"index.min.json\".</string>
|
<string name="action_add_repo_message">Add additional repos to Mihon. This should be a URL that ends with \"index.min.json\".</string>
|
||||||
<string name="error_repo_exists">This repo already exists!</string>
|
<string name="error_repo_exists">This repo already exists!</string>
|
||||||
|
Reference in New Issue
Block a user