Skip to content

Commit

Permalink
feat(contact-form): add created at date .. closes #141
Browse files Browse the repository at this point in the history
  • Loading branch information
arpowers committed Feb 28, 2020
1 parent 86ae26c commit 2540683
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion @plugins/plugin-contact-form/dashboard-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ export default Vue.extend({
postItemAdditional(this: any, post: FactorPost): PostListDataItem[] {
const formFields: { [key: string]: string } = this.formFields(post)
const entries = Object.entries(formFields)
return entries.map(([key, value]) => {
const moreFields = entries.map(([key, value]) => {
return { label: toLabel(key), value }
})
return [...moreFields, { label: "Created", value: standardDate(post.createdAt) }]
},
selectAll(this: any, val: boolean): void {
this.selected = !val ? [] : this.list.map((_: FactorPost) => _._id)
Expand Down

0 comments on commit 2540683

Please sign in to comment.