mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-13 00:12:17 -06:00
feat: Update translations, add pdf view to document edit page
This commit is contained in:
@@ -22,11 +22,13 @@ class DocumentEditCubit extends Cubit<DocumentEditState> {
|
||||
required DocumentModel document,
|
||||
}) : _initialDocument = document,
|
||||
super(DocumentEditState(document: document)) {
|
||||
_notifier.addListener(this, onUpdated: (doc) {
|
||||
if (doc.id == document.id) {
|
||||
_notifier.addListener(
|
||||
this,
|
||||
onUpdated: (doc) {
|
||||
emit(state.copyWith(document: doc));
|
||||
}
|
||||
});
|
||||
},
|
||||
ids: [document.id],
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> updateDocument(DocumentModel document) async {
|
||||
|
||||
Reference in New Issue
Block a user