Pull request #341: RED-3268
Merge in RED/ui from RED-3268 to master * commit '31f8b745730677e0b8b396dd7189dbb2f1f79c8d': annotationModificationDate instead of lastModified updated de.json file table last modified added column to config service
This commit is contained in:
commit
d6495f2f1f
@ -1,3 +0,0 @@
|
|||||||
<div [class.error]="file.isError" class="small-label">
|
|
||||||
{{ file.added | date: 'd MMM. yyyy, hh:mm a' }}
|
|
||||||
</div>
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
||||||
import { File } from '@red/domain';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'redaction-added-column',
|
|
||||||
templateUrl: './added-column.component.html',
|
|
||||||
styleUrls: ['./added-column.component.scss'],
|
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
||||||
})
|
|
||||||
export class AddedColumnComponent {
|
|
||||||
@Input() file: File;
|
|
||||||
}
|
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<div [class.error]="isError" class="small-label">
|
||||||
|
{{ date | date: 'd MMM. yyyy, hh:mm a' }}
|
||||||
|
</div>
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'redaction-date-column',
|
||||||
|
templateUrl: './date-column.component.html',
|
||||||
|
styleUrls: ['./date-column.component.scss'],
|
||||||
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
|
})
|
||||||
|
export class DateColumnComponent {
|
||||||
|
@Input() isError: boolean;
|
||||||
|
@Input() date: string;
|
||||||
|
}
|
||||||
@ -3,7 +3,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<redaction-added-column [file]="file"></redaction-added-column>
|
<redaction-date-column [date]="file.added" [isError]="file.isError"></redaction-date-column>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="cell">
|
||||||
|
<redaction-date-column [date]="file.annotationModificationDate" [isError]="file.isError"></redaction-date-column>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngFor="let config of displayedAttributes" class="cell">
|
<div *ngFor="let config of displayedAttributes" class="cell">
|
||||||
|
|||||||
@ -131,6 +131,10 @@ export class ConfigService {
|
|||||||
sortByKey: 'added',
|
sortByKey: 'added',
|
||||||
width: '2fr',
|
width: '2fr',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: _('dossier-overview.table-col-names.last-modified'),
|
||||||
|
width: '2fr',
|
||||||
|
},
|
||||||
...dynamicColumns,
|
...dynamicColumns,
|
||||||
{
|
{
|
||||||
label: _('dossier-overview.table-col-names.needs-work'),
|
label: _('dossier-overview.table-col-names.needs-work'),
|
||||||
|
|||||||
@ -17,7 +17,7 @@ import { WorkflowItemComponent } from './components/workflow-item/workflow-item.
|
|||||||
import { ScreenHeaderComponent } from './components/screen-header/screen-header.component';
|
import { ScreenHeaderComponent } from './components/screen-header/screen-header.component';
|
||||||
import { ViewModeSelectionComponent } from './components/view-mode-selection/view-mode-selection.component';
|
import { ViewModeSelectionComponent } from './components/view-mode-selection/view-mode-selection.component';
|
||||||
import { FileNameColumnComponent } from './components/table-item/file-name-column/file-name-column.component';
|
import { FileNameColumnComponent } from './components/table-item/file-name-column/file-name-column.component';
|
||||||
import { AddedColumnComponent } from './components/table-item/added-column/added-column.component';
|
import { DateColumnComponent } from './components/table-item/date-column/date-column.component';
|
||||||
import { BulkActionsService } from './services/bulk-actions.service';
|
import { BulkActionsService } from './services/bulk-actions.service';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
@ -44,7 +44,7 @@ const routes: Routes = [
|
|||||||
ScreenHeaderComponent,
|
ScreenHeaderComponent,
|
||||||
ViewModeSelectionComponent,
|
ViewModeSelectionComponent,
|
||||||
FileNameColumnComponent,
|
FileNameColumnComponent,
|
||||||
AddedColumnComponent,
|
DateColumnComponent,
|
||||||
],
|
],
|
||||||
providers: [ConfigService, BulkActionsService],
|
providers: [ConfigService, BulkActionsService],
|
||||||
imports: [RouterModule.forChild(routes), CommonModule, SharedModule, SharedDossiersModule, IqserIconsModule, TranslateModule],
|
imports: [RouterModule.forChild(routes), CommonModule, SharedModule, SharedDossiersModule, IqserIconsModule, TranslateModule],
|
||||||
|
|||||||
@ -788,6 +788,7 @@
|
|||||||
},
|
},
|
||||||
"table-col-names": {
|
"table-col-names": {
|
||||||
"added-on": "Hinzugefügt",
|
"added-on": "Hinzugefügt",
|
||||||
|
"last-modified": "",
|
||||||
"assigned-to": "Zugewiesen an",
|
"assigned-to": "Zugewiesen an",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"needs-work": "Arbeitsvorrat",
|
"needs-work": "Arbeitsvorrat",
|
||||||
|
|||||||
@ -788,6 +788,7 @@
|
|||||||
},
|
},
|
||||||
"table-col-names": {
|
"table-col-names": {
|
||||||
"added-on": "Added",
|
"added-on": "Added",
|
||||||
|
"last-modified": "Last modified on",
|
||||||
"assigned-to": "Assigned to",
|
"assigned-to": "Assigned to",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"needs-work": "Workload",
|
"needs-work": "Workload",
|
||||||
|
|||||||
@ -9,6 +9,7 @@ export class File extends Entity<IFile> implements IFile {
|
|||||||
readonly allManualRedactionsApplied: boolean;
|
readonly allManualRedactionsApplied: boolean;
|
||||||
readonly analysisDuration?: number;
|
readonly analysisDuration?: number;
|
||||||
readonly analysisRequired: boolean;
|
readonly analysisRequired: boolean;
|
||||||
|
readonly annotationModificationDate?: string;
|
||||||
readonly approvalDate?: string;
|
readonly approvalDate?: string;
|
||||||
readonly assignee?: string;
|
readonly assignee?: string;
|
||||||
readonly dictionaryVersion?: number;
|
readonly dictionaryVersion?: number;
|
||||||
@ -60,6 +61,7 @@ export class File extends Entity<IFile> implements IFile {
|
|||||||
this.allManualRedactionsApplied = !!file.allManualRedactionsApplied;
|
this.allManualRedactionsApplied = !!file.allManualRedactionsApplied;
|
||||||
this.analysisDuration = file.analysisDuration;
|
this.analysisDuration = file.analysisDuration;
|
||||||
this.analysisRequired = !!file.analysisRequired && !file.excluded;
|
this.analysisRequired = !!file.analysisRequired && !file.excluded;
|
||||||
|
this.annotationModificationDate = file.annotationModificationDate;
|
||||||
this.approvalDate = file.approvalDate;
|
this.approvalDate = file.approvalDate;
|
||||||
this.assignee = file.assignee;
|
this.assignee = file.assignee;
|
||||||
this.dictionaryVersion = file.dictionaryVersion;
|
this.dictionaryVersion = file.dictionaryVersion;
|
||||||
|
|||||||
@ -32,6 +32,7 @@ export interface IFile {
|
|||||||
/**
|
/**
|
||||||
* Shows which dictionary versions was used during the analysis.
|
* Shows which dictionary versions was used during the analysis.
|
||||||
*/
|
*/
|
||||||
|
readonly annotationModificationDate?: string;
|
||||||
readonly dictionaryVersion?: number;
|
readonly dictionaryVersion?: number;
|
||||||
/**
|
/**
|
||||||
* Shows which dossier dictionary versions was used during the analysis.
|
* Shows which dossier dictionary versions was used during the analysis.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user