wip
This commit is contained in:
parent
965b4d4f38
commit
bb76ac49a1
|
@ -58,9 +58,17 @@ struct SettingsScreen: View {
|
|||
controlType: .none
|
||||
)
|
||||
.onTapGesture {
|
||||
router.showAlert(
|
||||
.alert,
|
||||
title: "Delete data",
|
||||
subtitle: "Delete all data from the app?"
|
||||
) {
|
||||
Button("Delete", role: .destructive) {
|
||||
clientsStore.flushAllData()
|
||||
Database.shared.flushAllData()
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
.listStyle(.plain)
|
||||
|
|
Loading…
Reference in a new issue