Skip to content

Commit

Permalink
Shift contact email left to keep createdAt to the right most column
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Jaeger-Freeborn <[email protected]>
  • Loading branch information
Gavinok committed Dec 19, 2023
1 parent 898177f commit 8f53945
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,44 +88,44 @@
</Column>
<Column
:sortable="true"
field="created"
:header="$t('common.createdAt')"
filter-field="created"
field="contact_email"
header="Contact Email"
filter-field="contact_email"
:show-filter-match-modes="false"
>
<template #body="{ data }">
{{ data.created }}
<div v-if="data.contact_email" class="flex align-items-center gap-2">
<a :href="'mailto:' + data.contact_email">
{{ data.contact_email }}
</a>
</div>
</template>
<template #filter="{ filterModel, filterCallback }">
<InputText
v-model="filterModel.value"
type="text"
class="p-column-filter"
:placeholder="$t('common.searchByCreated')"
placeholder="Search By Contact Email"
@input="filterCallback()"
/>
</template>
</Column>
<Column
:sortable="true"
field="contact_email"
header="Contact Email"
filter-field="contact_email"
field="created"
:header="$t('common.createdAt')"
filter-field="created"
:show-filter-match-modes="false"
>
<template #body="{ data }">
<div v-if="data.contact_email" class="flex align-items-center gap-2">
<a :href="'mailto:' + data.contact_email">
{{ data.contact_email }}
</a>
</div>
{{ data.created }}
</template>
<template #filter="{ filterModel, filterCallback }">
<InputText
v-model="filterModel.value"
type="text"
class="p-column-filter"
placeholder="Search By Contact Email"
:placeholder="$t('common.searchByCreated')"
@input="filterCallback()"
/>
</template>
Expand Down

0 comments on commit 8f53945

Please sign in to comment.