v1.0.5: guardar nombre al editar cuenta y refrescar datos en las 3 pestañas principales

This commit is contained in:
2026-08-04 14:23:27 -06:00
parent c6bf1ecbf2
commit 9eebaca7c1
3 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ android {
applicationId "com.conta.app" applicationId "com.conta.app"
minSdk 24 minSdk 24
targetSdk 34 targetSdk 34
versionCode 5 versionCode 6
versionName "1.0.4" versionName "1.0.5"
} }
buildTypes { buildTypes {
@@ -120,6 +120,7 @@ class AppViewModel : ViewModel() {
viewModelScope.launch { viewModelScope.launch {
runRequest { _summary.value = repo.getSummary() } runRequest { _summary.value = repo.getSummary() }
runRequest { _transactions.value = repo.listTransactions() } runRequest { _transactions.value = repo.listTransactions() }
runRequest { _accounts.value = repo.listAccounts() }
runRequest { _notices.value = repo.listNotices() } runRequest { _notices.value = repo.listNotices() }
runRequest { _statistics.value = repo.getStatistics() } runRequest { _statistics.value = repo.getStatistics() }
} }
@@ -129,6 +130,9 @@ class AppViewModel : ViewModel() {
viewModelScope.launch { viewModelScope.launch {
runRequest { _summary.value = repo.getSummary() } runRequest { _summary.value = repo.getSummary() }
runRequest { _accounts.value = repo.listAccounts() } runRequest { _accounts.value = repo.listAccounts() }
runRequest { _transactions.value = repo.listTransactions() }
runRequest { _statistics.value = repo.getStatistics() }
runRequest { _notices.value = repo.listNotices() }
} }
} }
@@ -93,6 +93,7 @@ fun AccountFormScreen(viewModel: AppViewModel, navController: NavController, acc
viewModel.updateAccount( viewModel.updateAccount(
account.id, account.id,
UpdateAccountRequest( UpdateAccountRequest(
name = name.trim(),
creditLimit = parseAmount(creditLimit), creditLimit = parseAmount(creditLimit),
interestRate = parseAmount(interestRate), interestRate = parseAmount(interestRate),
maturityDate = maturityDate.ifBlank { null }, maturityDate = maturityDate.ifBlank { null },