Skip to content

Commit

Permalink
fix: fix contact list description display & UI column names (#4891)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Feb 20, 2021
1 parent e6dd42b commit aa090f8
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
1 change: 1 addition & 0 deletions app/Http/Resources/Contact/ContactSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function toArray($request)
'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,
Expand Down
11 changes: 1 addition & 10 deletions app/Models/Contact/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class Contact extends Model
'middle_name',
'last_name',
'nickname',
'description',
'gender_id',
'account_id',
'created_at',
Expand Down Expand Up @@ -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.
*
Expand Down
4 changes: 2 additions & 2 deletions public/css/app-ltr.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/css/app-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/langs/en.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/vendor.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
8 changes: 5 additions & 3 deletions resources/js/components/people/ContactList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
style-class="vgt-table"
:rtl="!dirltr"
:sort-options="{
enabled: true
enabled: false,
}"
:pagination-options="{
enabled: true,
Expand All @@ -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>
Expand Down Expand Up @@ -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',
}
],
Expand Down
6 changes: 6 additions & 0 deletions resources/lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,4 +462,10 @@
'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',

];
2 changes: 1 addition & 1 deletion resources/lang/en/people.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'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',
Expand Down
2 changes: 1 addition & 1 deletion webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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-/]
};

Expand Down

0 comments on commit aa090f8

Please sign in to comment.