Skip to content
Snippets Groups Projects
Commit 0251fc9a authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5718: reset attachment upload in progress on init

parent 413cf831
Branches
Tags
No related merge requests found
......@@ -932,6 +932,14 @@ describe('BescheidService', () => {
singleCold({ loading: false }),
);
});
it('should emit empty upload in progress for upload attachmentdocument in progress', () => {
service.init();
expect(service.getUploadAttachmentInProgress()).toBeObservable(
singleCold({ loading: false }),
);
});
});
describe('create bescheid document', () => {
......
......@@ -154,6 +154,7 @@ export class BescheidService {
this.bescheidDocumentUri$.next(null);
this.uploadBescheidDocumentInProgress$.next({ loading: false });
this.uploadedAttachment$.next(createEmptyStateResource());
this.uploadAttachmentInProgress$.next({ loading: false });
}
public getBescheidDraft(): Observable<StateResource<BescheidResource>> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment