Add retry button for request failures on list pages
This commit is contained in:
parent
9f8a8a5a9e
commit
88f37dac37
4 changed files with 8 additions and 2 deletions
|
@ -30,6 +30,9 @@ struct BudgetListsView: View {
|
|||
default:
|
||||
// TODO: Handle each network failure type
|
||||
Text("budgets_load_failure").navigationBarTitle("budgets")
|
||||
Button("action_retry", action: {
|
||||
self.budgetsDataStore.getBudgets()
|
||||
})
|
||||
}
|
||||
}.onAppear {
|
||||
self.budgetsDataStore.getBudgets()
|
||||
|
|
|
@ -34,6 +34,9 @@ struct CategoryListView: View {
|
|||
default:
|
||||
// TODO: Handle each network failure type
|
||||
Text("budgets_load_failure")
|
||||
Button("action_retry", action: {
|
||||
requestId = categoryDataStore.getCategories(budgetId: budget.id, archived: false)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"prompt_archived" = "Archived";
|
||||
"type_income" = "Income";
|
||||
"type_expense" = "Expense";
|
||||
"retry" = "Retry";
|
||||
"action_retry" = "Retry";
|
||||
"confirm_delete" = "Are you sure you want to delete this?";
|
||||
"cannot_undo" = "This cannot be undone";
|
||||
"overview" = "Overview";
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"prompt_archived" = "Archivada";
|
||||
"type_income" = "Ingreso";
|
||||
"type_expense" = "Gasto";
|
||||
"retry" = "Volver a intentar";
|
||||
"action_retry" = "Volver a intentar";
|
||||
"confirm_delete" = "¿Seguro que quieres eliminar esto?";
|
||||
"cannot_undo" = "No se puede deshacer";
|
||||
"overview" = "Vista Previa";
|
||||
|
|
Loading…
Reference in a new issue