Shows finalized Date on Dmp and Dataset listing

This commit is contained in:
apapachristou 2019-06-04 12:53:35 +03:00
parent 147eb2ce44
commit 978e2d67d0
5 changed files with 9 additions and 3 deletions

View File

@ -14,4 +14,5 @@ export interface DatasetListingModel {
status: Number;
created: Date;
modified: Date;
finalizedDat: Date;
}

View File

@ -11,6 +11,7 @@ export interface DmpListingModel {
profile: String;
creationTime: String;
modifiedTime: String;
finalizedDat: Date;
organisations: String;
groupId: string;
version: number;

View File

@ -36,7 +36,8 @@
<div class="pt-1">
<div matTooltip="{{ dataset.profile }}" class="chip ml-2 mr-2">{{ dataset.profile }}</div>
</div>
<p>{{'DATASET-LISTING.COLUMNS.PUBLISHED' | translate}} {{ dataset.created | date: "shortDate"}}</p>
<p *ngIf="isDraft">{{'DATASET-LISTING.COLUMNS.LAST-EDITED' | translate}} {{ dataset.modified | date: "shortDate"}}</p>
<p *ngIf="!isDraft">{{'DATASET-LISTING.COLUMNS.PUBLISHED' | translate}} {{ dataset.finalizedDat | date: "shortDate"}}</p>
</div>
</div>
<!-- <div class="info">

View File

@ -56,7 +56,8 @@
<div *ngFor="let profile of dmp.associatedProfiles" class="pt-1">
<div matTooltip="{{profile.label}}" class="chip ml-2 mr-2">{{profile.label}}</div>
</div>
<p>{{'DMP-PROFILE-LISTING.COLUMNS.PUBLISHED' | translate}} {{dmp.creationTime | date: "shortDate"}}</p>
<p *ngIf="isDraft">{{'DMP-PROFILE-LISTING.COLUMNS.LAST-EDITED' | translate}} {{dmp.modifiedTime | date: "shortDate"}}</p>
<p *ngIf="!isDraft">{{'DMP-PROFILE-LISTING.COLUMNS.PUBLISHED' | translate}} {{dmp.finalizedDat | date: "shortDate"}}</p>
</div>
</div>
<!-- <div class="row d-flex align-items-center my-1">

View File

@ -339,6 +339,7 @@
"DESCRIPTION": "Description",
"CREATED": "Created",
"PUBLISHED": "Published",
"LAST-EDITED": "Last Edited",
"ACTIONS": "Actions",
"DMP": "Dmp",
"PROFILE": "Profile",
@ -479,7 +480,8 @@
"NAME": "Name",
"STATUS": "Status",
"CREATED": "Created",
"PUBLISHED": "Published"
"PUBLISHED": "Published",
"LAST-EDITED": "Last Edited"
},
"UPLOAD": {
"UPLOAD-XML": "Import",