feat: Update translations, add pdf view to document edit page

This commit is contained in:
Anton Stubenbord
2023-10-24 15:37:43 +02:00
parent 652abb6945
commit cb4839f5a3
40 changed files with 804 additions and 609 deletions

View File

@@ -27,14 +27,15 @@ class DocumentChangedNotifier {
Object subscriber, {
DocumentChangedCallback? onUpdated,
DocumentChangedCallback? onDeleted,
Iterable<int>? ids,
}) {
_subscribers.putIfAbsent(
subscriber,
() => [
_updated.listen((value) {
_updated.where((doc) => ids?.contains(doc.id) ?? true).listen((value) {
onUpdated?.call(value);
}),
_deleted.listen((value) {
_deleted.where((doc) => ids?.contains(doc.id) ?? true).listen((value) {
onDeleted?.call(value);
}),
],