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