Skip to content

Commit

Permalink
Fix tags UI sync issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ismartcoding committed Jun 4, 2024
1 parent f0790f8 commit 82fa523
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ android {
else -> 0
}

val vCode = 304
val vCode = 307
versionCode = vCode - singleAbiNum
versionName = "1.2.57"
versionName = "1.2.58"

ndk {
//noinspection ChromeOsAbiSupport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.ismartcoding.plain.ui.base.TextFieldDialog
import com.ismartcoding.plain.ui.models.TagsViewModel

@Composable
fun TagNameDialog(viewModel: TagsViewModel) {
fun TagNameDialog(viewModel: TagsViewModel, onChanged: () -> Unit = {}) {
val tag = viewModel.editItem.value
if (viewModel.tagNameDialogVisible.value) {
TextFieldDialog(
Expand All @@ -27,6 +27,7 @@ fun TagNameDialog(viewModel: TagsViewModel) {
} else {
viewModel.addTag(viewModel.editTagName.value)
}
onChanged()
},
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fun TagSelector(
LaunchedEffect(Unit) {
tagIds.addAll(tagsMap[data.id]?.map { it.tagId } ?: emptyList())
}
TagNameDialog(tagsViewModel)
TagNameDialog(tagsViewModel, onChanged)
FlowRow(
modifier =
Modifier
Expand Down

0 comments on commit 82fa523

Please sign in to comment.