Skip to content

Commit

Permalink
allow empty textFieldPrompt token customModel
Browse files Browse the repository at this point in the history
  • Loading branch information
rhjdvsgsgks authored Jan 26, 2025
1 parent 7689dce commit bbbf43a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ private fun APIKeyDialog(
onDismissRequest = onDismissRequest,
confirmButton = {
TextButton(
enabled = token.isNotBlank(),
onClick = { onConfirmRequest(token) }
) {
Text(stringResource(R.string.confirm))
Expand Down Expand Up @@ -359,7 +358,7 @@ private fun ModelDialog(
onDismissRequest = onDismissRequest,
confirmButton = {
TextButton(
enabled = if (customSelected) customModel.isNotBlank() else model.isNotBlank(),
enabled = !customSelected && model.isNotBlank(),
onClick = {
if (customSelected) {
onConfirmRequest(customModel)
Expand Down Expand Up @@ -567,7 +566,6 @@ private fun SystemPromptDialog(
onDismissRequest = onDismissRequest,
confirmButton = {
TextButton(
enabled = textFieldPrompt.isNotBlank(),
onClick = { onConfirmRequest(textFieldPrompt) }
) {
Text(stringResource(R.string.confirm))
Expand Down

0 comments on commit bbbf43a

Please sign in to comment.