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