fix: fix contact list description display & UI column names (#4891)
This commit is contained in:
@@ -24,6 +24,7 @@ class ContactSearch extends JsonResource
|
||||
'object' => 'contact',
|
||||
'route' => route('people.show', $this),
|
||||
'complete_name' => $this->name,
|
||||
'description' => $this->description,
|
||||
'initials' => $this->getInitials(),
|
||||
'is_me' => $this->isMe(),
|
||||
'is_starred' => $this->is_starred,
|
||||
|
||||
@@ -77,6 +77,7 @@ class Contact extends Model
|
||||
'middle_name',
|
||||
'last_name',
|
||||
'nickname',
|
||||
'description',
|
||||
'gender_id',
|
||||
'account_id',
|
||||
'created_at',
|
||||
@@ -156,16 +157,6 @@ class Contact extends Model
|
||||
*/
|
||||
protected $nameOrder = 'firstname_lastname';
|
||||
|
||||
/**
|
||||
* Get Searchable Fields.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getSearchableFields()
|
||||
{
|
||||
return $this->searchable_columns;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the user associated with the contact.
|
||||
*
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"/js/manifest.js": "/js/manifest.js?id=7db827d654313dce4250",
|
||||
"/js/vendor.js": "/js/vendor.js?id=f1d25cdb9c04fd1afc64",
|
||||
"/js/app.js": "/js/app.js?id=0e910f3348e95fc19b61",
|
||||
"/css/app-ltr.css": "/css/app-ltr.css?id=e170464599d6491d6c24",
|
||||
"/css/app-rtl.css": "/css/app-rtl.css?id=0047b4f2dbce9192f46a",
|
||||
"/js/vendor.js": "/js/vendor.js?id=328ace3a6e77123c320b",
|
||||
"/js/app.js": "/js/app.js?id=a02d90e137bce90b34a5",
|
||||
"/css/app-ltr.css": "/css/app-ltr.css?id=247eac24f03a2c03e7b9",
|
||||
"/css/app-rtl.css": "/css/app-rtl.css?id=98bc5014524646c66b73",
|
||||
"/css/stripe.css": "/css/stripe.css?id=04066fb482310d18299c",
|
||||
"/js/stripe.js": "/js/stripe.js?id=31bf2d83f6ef3685ff0b"
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
style-class="vgt-table"
|
||||
:rtl="!dirltr"
|
||||
:sort-options="{
|
||||
enabled: true
|
||||
enabled: false,
|
||||
}"
|
||||
:pagination-options="{
|
||||
enabled: true,
|
||||
@@ -57,8 +57,6 @@
|
||||
@on-search="onSearch"
|
||||
@on-row-click="onRowClick"
|
||||
>
|
||||
<template slot="table-column">
|
||||
</template>
|
||||
<div slot="emptystate" class="tc">
|
||||
{{ $t('people.people_search_no_results') }}
|
||||
</div>
|
||||
@@ -147,13 +145,17 @@ export default {
|
||||
|
||||
columns: [
|
||||
{
|
||||
label: this.$t('app.contact_list_avatar'),
|
||||
field: 'avatar',
|
||||
width: '70px',
|
||||
sortable: false,
|
||||
},
|
||||
{
|
||||
label: this.$t('app.contact_list_name'),
|
||||
field: 'name',
|
||||
},
|
||||
{
|
||||
label: this.$t('app.contact_list_description'),
|
||||
field: 'description',
|
||||
}
|
||||
],
|
||||
|
||||
@@ -462,4 +462,10 @@ return [
|
||||
'dav_birthdays_description' => ':name’s contact’s birthdays',
|
||||
'dav_tasks' => 'Tasks',
|
||||
'dav_tasks_description' => ':name’s tasks',
|
||||
|
||||
// contact list
|
||||
'contact_list_avatar' => 'Avatar',
|
||||
'contact_list_name' => 'Contact',
|
||||
'contact_list_description' => 'Description',
|
||||
|
||||
];
|
||||
|
||||
@@ -32,7 +32,7 @@ return [
|
||||
'people_search_no_results' => 'No results found',
|
||||
'people_search_next' => 'Next',
|
||||
'people_search_prev' => 'Prev',
|
||||
'people_search_rows_per_page' => 'Rows per page:',
|
||||
'people_search_rows_per_page' => 'Rows per page',
|
||||
'people_search_of' => 'of',
|
||||
'people_search_page' => 'Page',
|
||||
'people_search_all' => 'All',
|
||||
|
||||
Vendored
+1
-1
@@ -26,7 +26,7 @@ mix.webpackConfig({
|
||||
|
||||
let purgeCssOptions = {
|
||||
enabled: true,
|
||||
whitelistPatterns: [/^autosuggest/, /^fa-/, /^vdp-datepicker/, /^StripeElement/, /^vgt/, /^vue-tooltip/, /^pretty/, /^sweet-/, /^vuejs-clipper-basic/, /^vs__/],
|
||||
whitelistPatterns: [/^autosuggest/, /^fa-/, /^vdp-datepicker/, /^StripeElement/, /^vgt/, /^vue-tooltip/, /^pretty/, /^sweet-/, /^vuejs-clipper-basic/, /^vs__/, /^sr-only/],
|
||||
whitelistPatternsChildren: [/^vdp-datepicker/, /^vgt/, /^vue-tooltip/, /^pretty/, /^sweet-/, /^vs-/]
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user