From 0fdf4a13972df197065adf5df273b8ef8c16bff1 Mon Sep 17 00:00:00 2001 From: Duncan McClean <19637309+duncanmcclean@users.noreply.github.com> Date: Mon, 27 Nov 2023 21:06:48 +0000 Subject: [PATCH] [4.x] Improve replicator preview for Date Fieldtype (#9057) --- resources/js/components/fieldtypes/DateFieldtype.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/js/components/fieldtypes/DateFieldtype.vue b/resources/js/components/fieldtypes/DateFieldtype.vue index 06c8e0e1f0..8e0b779a38 100644 --- a/resources/js/components/fieldtypes/DateFieldtype.vue +++ b/resources/js/components/fieldtypes/DateFieldtype.vue @@ -158,6 +158,12 @@ export default { return this.meta.displayFormat; }, + replicatorPreview() { + return this.hasTime + ? `${this.value.date} ${this.value.time}` + : this.value.date; + }, + }, created() {