Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Refactor uploads to service, working global dd

Michael Shamoon77b9988d0583
diff --git a/src-ui/src/app/app.component.ts b/src-ui/src/app/app.component.ts
index f8c98fbc7..e0581ca32 100644
--- a/src-ui/src/app/app.component.ts
+++ b/src-ui/src/app/app.component.ts
@@ -1,5 +1,11 @@
import { SettingsService, SETTINGS_KEYS } from './services/settings.service'
-import { Component, OnDestroy, OnInit } from '@angular/core'
+import {
+ Component,
+ OnDestroy,
+ OnInit,
+ Renderer2,
+ RendererFactory2,
+} from '@angular/core'
import { Router } from '@angular/router'
import { Subscription } from 'rxjs'
import { ConsumerStatusService } from './services/consumer-status.service'
diff --git a/src-ui/src/app/services/upload-documents.service.spec.ts b/src-ui/src/app/services/upload-documents.service.spec.ts
new file mode 100644
index 000000000..de4f6bb2e
--- /dev/null
+++ b/src-ui/src/app/services/upload-documents.service.spec.ts
@@ -0,0 +1,16 @@
+import { TestBed } from '@angular/core/testing';
+
+import { UploadDocumentsService } from './upload-documents.service';
+
+describe('UploadDocumentsService', () => {
+ let service: UploadDocumentsService;
+
+ beforeEach(() => {
+ TestBed.configureTestingModule({});
+ service = TestBed.inject(UploadDocumentsService);
+ });
+
+ it('should be created', () => {
+ expect(service).toBeTruthy();
+ });
+});