From d925fb38ce63618bfe283b08144ef5fdb3af4a6f Mon Sep 17 00:00:00 2001
From: Michael Shamoon <4887959+shamoon@users.noreply.github.com>
Date: Mon, 23 May 2022 00:32:39 -0700
Subject: [PATCH] Basic tasks frontend view
Update app-frame.component.ts
---
src-ui/src/app/app-routing.module.ts | 2 +
src-ui/src/app/app.module.ts | 2 +
.../app-frame/app-frame.component.html | 7 ++
.../app-frame/app-frame.component.ts | 5 +-
.../manage/tasks/tasks.component.html | 60 ++++++-------
.../manage/tasks/tasks.component.ts | 55 +-----------
src-ui/src/app/data/paperless-task.ts | 18 +---
src-ui/src/app/services/tasks.service.ts | 85 ++++++++++++-------
8 files changed, 93 insertions(+), 141 deletions(-)
diff --git a/src-ui/src/app/app-routing.module.ts b/src-ui/src/app/app-routing.module.ts
index 3eb13177f..65db5f97e 100644
--- a/src-ui/src/app/app-routing.module.ts
+++ b/src-ui/src/app/app-routing.module.ts
@@ -13,6 +13,7 @@ import { NotFoundComponent } from './components/not-found/not-found.component'
import { DocumentAsnComponent } from './components/document-asn/document-asn.component'
import { DirtyFormGuard } from './guards/dirty-form.guard'
import { StoragePathListComponent } from './components/manage/storage-path-list/storage-path-list.component'
+import { TasksComponent } from './components/manage/tasks/tasks.component'
const routes: Routes = [
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
@@ -35,6 +36,7 @@ const routes: Routes = [
component: SettingsComponent,
canDeactivate: [DirtyFormGuard],
},
+ { path: 'tasks', component: TasksComponent },
],
},
diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts
index 9701aeb18..97927421e 100644
--- a/src-ui/src/app/app.module.ts
+++ b/src-ui/src/app/app.module.ts
@@ -90,6 +90,7 @@ import localeZh from '@angular/common/locales/zh'
import { StoragePathListComponent } from './components/manage/storage-path-list/storage-path-list.component'
import { StoragePathEditDialogComponent } from './components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component'
import { SettingsService } from './services/settings.service'
+import { TasksComponent } from './components/manage/tasks/tasks.component'
registerLocaleData(localeBe)
registerLocaleData(localeCs)
@@ -171,6 +172,7 @@ function initializeApp(settings: SettingsService) {
DateComponent,
ColorComponent,
DocumentAsnComponent,
+ TasksComponent,
],
imports: [
BrowserModule,
diff --git a/src-ui/src/app/components/app-frame/app-frame.component.html b/src-ui/src/app/components/app-frame/app-frame.component.html
index 8ec2bf8aa..daf4120f7 100644
--- a/src-ui/src/app/components/app-frame/app-frame.component.html
+++ b/src-ui/src/app/components/app-frame/app-frame.component.html
@@ -141,6 +141,13 @@