Add PDF loader, add Empty trash button

This commit is contained in:
Jackson Harper
2024-02-05 17:16:12 +08:00
parent 737692214c
commit 5f3a3d4bf3
7 changed files with 27352 additions and 26964 deletions

View File

@ -377,4 +377,18 @@ enum LoadingBarStyle {
fetcher.updateFeatureFilter(context: context, filter: filter)
}
}
@Published var isEmptyingTrash = false
func emptyTrash(dataService: DataService) {
self.isEmptyingTrash = true
Task {
if !(await dataService.emptyTrash()) {
snackbar("Error emptying trash")
} else {
snackbar("Trash emptied")
}
isEmptyingTrash = false
}
}
}