diff --git a/src-ui/src/app/components/common/page-header/page-header.component.html b/src-ui/src/app/components/common/page-header/page-header.component.html index 1174ee044..fe6906c88 100644 --- a/src-ui/src/app/components/common/page-header/page-header.component.html +++ b/src-ui/src/app/components/common/page-header/page-header.component.html @@ -1,7 +1,9 @@
{{title}}
-{{subTitle}}
+Created | Title | +Tags | +Correspondent | ||
---|---|---|---|---|---|
{{doc.created_date | customDate}} | -
- {{doc.title | documentTitle}} | {{doc.created_date | customDate}} | ++ {{doc.title | documentTitle}} + | +
+ |
+
+ {{(doc.correspondent$ | async)?.name}}
+
+
+
diff --git a/src-ui/src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.spec.ts b/src-ui/src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.spec.ts
index da07b7186..5bddfaab1 100644
--- a/src-ui/src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.spec.ts
+++ b/src-ui/src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.spec.ts
@@ -11,6 +11,7 @@ import { environment } from 'src/environments/environment'
import { RouterTestingModule } from '@angular/router/testing'
import { routes } from 'src/app/app-routing.module'
import { PermissionsGuard } from 'src/app/guards/permissions.guard'
+import { IfPermissionsDirective } from 'src/app/directives/if-permissions.directive'
describe('StatisticsWidgetComponent', () => {
let component: StatisticsWidgetComponent
@@ -19,7 +20,11 @@ describe('StatisticsWidgetComponent', () => {
beforeEach(async () => {
TestBed.configureTestingModule({
- declarations: [StatisticsWidgetComponent, WidgetFrameComponent],
+ declarations: [
+ StatisticsWidgetComponent,
+ WidgetFrameComponent,
+ IfPermissionsDirective,
+ ],
providers: [PermissionsGuard],
imports: [
HttpClientTestingModule,
diff --git a/src-ui/src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.ts b/src-ui/src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.ts
index be7221975..a662126b0 100644
--- a/src-ui/src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.ts
+++ b/src-ui/src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.ts
@@ -6,6 +6,7 @@ import { ConsumerStatusService } from 'src/app/services/consumer-status.service'
import { DocumentListViewService } from 'src/app/services/document-list-view.service'
import { environment } from 'src/environments/environment'
import * as mimeTypeNames from 'mime-names'
+import { ComponentWithPermissions } from 'src/app/components/with-permissions/with-permissions.component'
export interface Statistics {
documents_total?: number
@@ -13,6 +14,10 @@ export interface Statistics {
inbox_tag?: number
document_file_type_counts?: DocumentFileType[]
character_count?: number
+ tag_count?: number
+ correspondent_count?: number
+ document_type_count?: number
+ storage_path_count?: number
}
interface DocumentFileType {
@@ -25,14 +30,19 @@ interface DocumentFileType {
templateUrl: './statistics-widget.component.html',
styleUrls: ['./statistics-widget.component.scss'],
})
-export class StatisticsWidgetComponent implements OnInit, OnDestroy {
+export class StatisticsWidgetComponent
+ extends ComponentWithPermissions
+ implements OnInit, OnDestroy
+{
loading: boolean = true
constructor(
private http: HttpClient,
private consumerStatusService: ConsumerStatusService,
private documentListViewService: DocumentListViewService
- ) {}
+ ) {
+ super()
+ }
statistics: Statistics = {}
diff --git a/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html b/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html
index af1dd533b..e5d64b777 100644
--- a/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html
+++ b/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html
@@ -8,12 +8,12 @@
-
- |