mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-15 04:12:30 -06:00
feat: Update translations, add pdf view to document edit page
This commit is contained in:
@@ -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);
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user