This commit is contained in:
fmodf 2024-10-07 18:16:00 +02:00
parent 965b4d4f38
commit bb76ac49a1

View file

@ -58,8 +58,16 @@ struct SettingsScreen: View {
controlType: .none
)
.onTapGesture {
clientsStore.flushAllData()
Database.shared.flushAllData()
router.showAlert(
.alert,
title: "Delete data",
subtitle: "Delete all data from the app?"
) {
Button("Delete", role: .destructive) {
clientsStore.flushAllData()
Database.shared.flushAllData()
}
}
}
#endif
}