v1.0.5: guardar nombre al editar cuenta y refrescar datos en las 3 pestañas principales
This commit is contained in:
+2
-2
@@ -13,8 +13,8 @@ android {
|
||||
applicationId "com.conta.app"
|
||||
minSdk 24
|
||||
targetSdk 34
|
||||
versionCode 5
|
||||
versionName "1.0.4"
|
||||
versionCode 6
|
||||
versionName "1.0.5"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
|
||||
@@ -120,6 +120,7 @@ class AppViewModel : ViewModel() {
|
||||
viewModelScope.launch {
|
||||
runRequest { _summary.value = repo.getSummary() }
|
||||
runRequest { _transactions.value = repo.listTransactions() }
|
||||
runRequest { _accounts.value = repo.listAccounts() }
|
||||
runRequest { _notices.value = repo.listNotices() }
|
||||
runRequest { _statistics.value = repo.getStatistics() }
|
||||
}
|
||||
@@ -129,6 +130,9 @@ class AppViewModel : ViewModel() {
|
||||
viewModelScope.launch {
|
||||
runRequest { _summary.value = repo.getSummary() }
|
||||
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(
|
||||
account.id,
|
||||
UpdateAccountRequest(
|
||||
name = name.trim(),
|
||||
creditLimit = parseAmount(creditLimit),
|
||||
interestRate = parseAmount(interestRate),
|
||||
maturityDate = maturityDate.ifBlank { null },
|
||||
|
||||
Reference in New Issue
Block a user