+
diff --git a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts
index 61a58162e..085a6e253 100644
--- a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts
+++ b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts
@@ -1,17 +1,17 @@
-import { Component, OnDestroy, OnInit } from '@angular/core';
-import { ActivatedRoute, Router } from '@angular/router';
-import { FileStatus, ReanalysisControllerService, StatusControllerService } from '@redaction/red-ui-http';
-import { NotificationService } from '../../notification/notification.service';
-import { AppStateService } from '../../state/app-state.service';
-import { FileDropOverlayService } from '../../upload/file-drop/service/file-drop-overlay.service';
-import { FileUploadModel } from '../../upload/model/file-upload.model';
-import { FileUploadService } from '../../upload/file-upload.service';
-import { UploadStatusOverlayService } from '../../upload/upload-status-dialog/service/upload-status-overlay.service';
-import { UserService } from '../../user/user.service';
-import { SortingOption } from '../../utils/types';
-import { DoughnutChartConfig } from '../../components/simple-doughnut-chart/simple-doughnut-chart.component';
-import { groupBy } from '../../utils/functions';
-import { DialogService } from '../../dialogs/dialog.service';
+import {Component, OnDestroy, OnInit} from '@angular/core';
+import {ActivatedRoute, Router} from '@angular/router';
+import {FileStatus, ReanalysisControllerService, StatusControllerService} from '@redaction/red-ui-http';
+import {NotificationService} from '../../notification/notification.service';
+import {AppStateService} from '../../state/app-state.service';
+import {FileDropOverlayService} from '../../upload/file-drop/service/file-drop-overlay.service';
+import {FileUploadModel} from '../../upload/model/file-upload.model';
+import {FileUploadService} from '../../upload/file-upload.service';
+import {UploadStatusOverlayService} from '../../upload/upload-status-dialog/service/upload-status-overlay.service';
+import {UserService} from '../../user/user.service';
+import {SortingOption} from '../../utils/types';
+import {DoughnutChartConfig} from '../../components/simple-doughnut-chart/simple-doughnut-chart.component';
+import {groupBy} from '../../utils/functions';
+import {DialogService} from '../../dialogs/dialog.service';
@Component({
@@ -24,10 +24,10 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
private _selectedFileIds: string[] = [];
public sortingOptions: SortingOption[] = [
- { label: 'project-overview.sorting.recent.label', order: 'desc', column: 'lastUpdated' },
- { label: 'project-overview.sorting.alphabetically.label', order: 'asc', column: 'filename' },
- { label: 'project-overview.sorting.number-of-pages.label', order: 'asc', column: 'numberOfPages' },
- { label: 'project-overview.sorting.number-of-analyses.label', order: 'desc', column: 'numberOfAnalyses' }
+ {label: 'project-overview.sorting.recent.label', order: 'desc', column: 'lastUpdated'},
+ {label: 'project-overview.sorting.alphabetically.label', order: 'asc', column: 'filename'},
+ {label: 'project-overview.sorting.number-of-pages.label', order: 'asc', column: 'numberOfPages'},
+ {label: 'project-overview.sorting.number-of-analyses.label', order: 'desc', column: 'numberOfAnalyses'}
];
public sortingOption: SortingOption = this.sortingOptions[0];
public documentsChartData: DoughnutChartConfig[] = [];
@@ -81,7 +81,7 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
}
public get overflowCount() {
- return this.members.length - 6;
+ return this.members.length > 6 ? this.members.length - 6 : 0;
}
public get ownerName() {
@@ -98,7 +98,7 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
const groups = groupBy(this.appStateService.activeProject.files, 'status');
this.documentsChartData = [];
for (const key of Object.keys(groups)) {
- this.documentsChartData.push({ value: groups[key].length, color: key, label: key });
+ this.documentsChartData.push({value: groups[key].length, color: key, label: key});
}
}
@@ -149,7 +149,7 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
}
public openAssignProjectMembersDialog() {
- this._dialogService.openAssignProjectMembersDialog(this.activeProject,() => {
+ this._dialogService.openAssignProjectMembersAndOwnerDialog(null, this.activeProject, () => {
this._getFileStatus();
});
}