Modified instead of created

This commit is contained in:
apapachristou 2019-05-06 13:50:48 +03:00
parent c2c18d0131
commit 059fbcf343
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
<td *ngIf="activity.status === 0" style="padding-left: 12px"> <td *ngIf="activity.status === 0" style="padding-left: 12px">
{{ enumUtils.toDmpStatusString(activity.status) }} {{ enumUtils.toDmpStatusString(activity.status) }}
</td> </td>
<td style="padding-left: 12px">{{ activity.creationTime | date: "shortDate" }}</td> <td style="padding-left: 12px">{{ activity.modifiedTime | date: "shortDate" }}</td>
<td><i class="material-icons more-icon">more_horiz</i></td> <td><i class="material-icons more-icon">more_horiz</i></td>
</tr> </tr>
</tbody> </tbody>

View File

@ -26,7 +26,7 @@ export class RecentEditedActivityComponent implements OnInit {
ngOnInit() { ngOnInit() {
if (this.isAuthenticated()) { if (this.isAuthenticated()) {
const fields: Array<string> = ["-created"]; const fields: Array<string> = ["-modified"];
const dmpDataTableRequest: DataTableRequest<DmpCriteria> = new DataTableRequest(0, null, { fields: fields }); const dmpDataTableRequest: DataTableRequest<DmpCriteria> = new DataTableRequest(0, null, { fields: fields });
dmpDataTableRequest.criteria = new DmpCriteria(); dmpDataTableRequest.criteria = new DmpCriteria();
dmpDataTableRequest.criteria.like = ""; dmpDataTableRequest.criteria.like = "";