Documents
This commit is contained in:
parent
66948b9452
commit
8f7d66a60b
|
|
@ -107,10 +107,14 @@ Middleware<AppState> _saveDocument(DocumentRepository repository) {
|
|||
repository
|
||||
.saveData(store.state.credentials, action.document)
|
||||
.then((DocumentEntity document) {
|
||||
document = document.rebuild((b) => b
|
||||
..parentId = action.document.parentId
|
||||
..parentType = action.document.parentType);
|
||||
|
||||
store.dispatch(SaveDocumentSuccess(document));
|
||||
|
||||
if (action.completer != null) {
|
||||
action.completer.complete(null);
|
||||
action.completer.complete(document);
|
||||
}
|
||||
}).catchError((Object error) {
|
||||
print(error);
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ class EntityPresenter {
|
|||
EntityType.user,
|
||||
EntityType.product,
|
||||
EntityType.transaction,
|
||||
EntityType.document,
|
||||
].contains(entity.entityType) ||
|
||||
isNarrow) {
|
||||
return name;
|
||||
|
|
|
|||
Loading…
Reference in New Issue