From 76e24292edd6eaeb3f82dd5420c6e5d692719ce9 Mon Sep 17 00:00:00 2001 From: Nicolas Molina Date: Wed, 27 Nov 2024 13:56:08 -0400 Subject: [PATCH] chore(edit-content): add format date #30215 --- .../dot-select-existing-content.component.html | 5 ++--- .../dot-select-existing-content.component.ts | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.html b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.html index a2ec2f8d40bb..caa5b0960fcc 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.html +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.html @@ -4,7 +4,6 @@ @@ -12,7 +11,7 @@ #datatable [value]="data" selectionMode="multiple" - [(selection)]="$selectedItems" + [(selection)]="$selectedItems" [loading]="store.isLoading()" [paginator]="false" [rows]="rowsPerPage" @@ -75,7 +74,7 @@

{{ item.description }}

- {{ item.lastUpdate }} + {{ item.lastUpdate | date }} diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.ts index 1905da478095..f45a0c2f1819 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-relationship-field/components/dot-select-existing-content/dot-select-existing-content.component.ts @@ -1,3 +1,4 @@ +import { DatePipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, inject, model } from '@angular/core'; import { ButtonModule } from 'primeng/button'; @@ -23,7 +24,8 @@ import { Content, ExistingContentStore } from './store/existing-content.store'; DialogModule, IconFieldModule, InputIconModule, - InputTextModule + InputTextModule, + DatePipe ], templateUrl: './dot-select-existing-content.component.html', styleUrls: ['./dot-select-existing-content.component.scss'],