Re-add delete all button

This commit is contained in:
Julia Friesel
2018-07-23 12:59:40 +02:00
parent f52401d05d
commit 201a0d0ae1
3 changed files with 46 additions and 20 deletions
+7
View File
@@ -117,6 +117,12 @@ function fillWithDummyData() {
})
}
function deleteAll() {
db.write(() => {
db.deleteAll()
})
}
function getPreviousTemperature(cycleDay) {
cycleDay.wrappedDate = LocalDate.parse(cycleDay.date)
const winner = temperatureDaysSortedByDate.find(day => {
@@ -134,6 +140,7 @@ export {
temperatureDaysSortedByDate,
cycleDaysSortedByDate,
fillWithDummyData,
deleteAll,
getPreviousTemperature,
getCycleDay
}