mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-13 02:12:17 -06:00
feat: Add improved date input, fix bugs, restructurings
This commit is contained in:
@@ -27,22 +27,6 @@ class DocumentEditCubit extends Cubit<DocumentEditState> {
|
||||
emit(state.copyWith(document: doc));
|
||||
}
|
||||
});
|
||||
_labelRepository.addListener(
|
||||
this,
|
||||
onChanged: (labels) {
|
||||
if (isClosed) {
|
||||
return;
|
||||
}
|
||||
emit(
|
||||
state.copyWith(
|
||||
correspondents: labels.correspondents,
|
||||
documentTypes: labels.documentTypes,
|
||||
storagePaths: labels.storagePaths,
|
||||
tags: labels.tags,
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> updateDocument(DocumentModel document) async {
|
||||
@@ -76,7 +60,6 @@ class DocumentEditCubit extends Cubit<DocumentEditState> {
|
||||
@override
|
||||
Future<void> close() {
|
||||
_notifier.removeListener(this);
|
||||
_labelRepository.removeListener(this);
|
||||
return super.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user