@@ -2,7 +2,7 @@ import { Component } from '@angular/core';
2
2
import { NgbActiveModal , NgbModal , NgbModalRef } from '@ng-bootstrap/ng-bootstrap' ;
3
3
import { set } from 'tsfun' ;
4
4
import { CategoryForm , FieldDocument , Document , RelationsManager , Relation , Resource , Datastore , Labels ,
5
- ProjectConfiguration } from 'idai-field-core' ;
5
+ ProjectConfiguration , DateSpecification } from 'idai-field-core' ;
6
6
import { Menus } from '../../../../services/menus' ;
7
7
import { MenuContext } from '../../../../services/menu-context' ;
8
8
import { DoceditComponent } from '../../../docedit/docedit.component' ;
@@ -11,6 +11,8 @@ import { M } from '../../../messages/m';
11
11
import { AngularUtility } from '../../../../angular/angular-utility' ;
12
12
import { sortWorkflowSteps } from './sort-workflow-steps' ;
13
13
import { DeleteWorkflowStepModalComponent } from './delete/delete-workflow-step-modal.component' ;
14
+ import { getSystemTimezone } from '../../../../util/timezones' ;
15
+ import { Settings } from '../../../../services/settings/settings' ;
14
16
15
17
16
18
@Component ( {
@@ -45,7 +47,7 @@ export class WorkflowEditorModalComponent {
45
47
46
48
public getShortDescriptionLabel = ( workflowStep : Document ) =>
47
49
Resource . getShortDescriptionLabel ( workflowStep . resource , this . labels , this . projectConfiguration ) ;
48
-
50
+
49
51
public cancel = ( ) => this . activeModal . close ( ) ;
50
52
51
53
@@ -149,6 +151,21 @@ export class WorkflowEditorModalComponent {
149
151
}
150
152
151
153
154
+ public getExecutionDateLabel ( workflowStep : Document ) : string {
155
+
156
+ if ( ! workflowStep . resource . executionDate ) return '' ;
157
+
158
+ const timeSuffix : string = $localize `:@@revisionLabel.timeSuffix:Uhr` ;
159
+
160
+ return DateSpecification . generateLabel (
161
+ workflowStep . resource . executionDate ,
162
+ getSystemTimezone ( ) ,
163
+ timeSuffix ,
164
+ Settings . getLocale ( )
165
+ ) ;
166
+ }
167
+
168
+
152
169
private async setRelation ( workflowStep : Document ) {
153
170
154
171
const oldVersion : Document = Document . clone ( workflowStep ) ;
0 commit comments