Skip to content

Commit

Permalink
[4.x] Improve replicator preview for Date Fieldtype (#9057)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Nov 27, 2023
1 parent 952dacb commit 0fdf4a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/js/components/fieldtypes/DateFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ export default {
return this.meta.displayFormat;
},
replicatorPreview() {
return this.hasTime
? `${this.value.date} ${this.value.time}`
: this.value.date;
},
},
created() {
Expand Down

0 comments on commit 0fdf4a1

Please sign in to comment.