Merge pull request #2782 from brkcvn/master
Disabled contacts show in contact area
This commit is contained in:
commit
62ed0a7344
@ -310,26 +310,28 @@ export default {
|
|||||||
let contacts = response.data.data;
|
let contacts = response.data.data;
|
||||||
|
|
||||||
contacts.forEach(function (contact, index) {
|
contacts.forEach(function (contact, index) {
|
||||||
this.contact_list.push({
|
if (contact.enabled) {
|
||||||
index: index,
|
this.contact_list.push({
|
||||||
key: contact.id,
|
index: index,
|
||||||
value: (contact.title) ? contact.title : (contact.display_name) ? contact.display_name : contact.name,
|
key: contact.id,
|
||||||
type: (contact.type) ? contact.type : 'customer',
|
value: (contact.title) ? contact.title : (contact.display_name) ? contact.display_name : contact.name,
|
||||||
id: contact.id,
|
type: (contact.type) ? contact.type : 'customer',
|
||||||
name: (contact.title) ? contact.title : (contact.display_name) ? contact.display_name : contact.name,
|
id: contact.id,
|
||||||
email: (contact.email) ? contact.email : '',
|
name: (contact.title) ? contact.title : (contact.display_name) ? contact.display_name : contact.name,
|
||||||
tax_number: (contact.tax_number) ? contact.tax_number : '',
|
email: (contact.email) ? contact.email : '',
|
||||||
currency_code: (contact.currency_code) ? contact.currency_code : '',
|
tax_number: (contact.tax_number) ? contact.tax_number : '',
|
||||||
phone: (contact.phone) ? contact.phone : '',
|
currency_code: (contact.currency_code) ? contact.currency_code : '',
|
||||||
website: (contact.website) ? contact.website : '',
|
phone: (contact.phone) ? contact.phone : '',
|
||||||
address: (contact.address) ? contact.address : '',
|
website: (contact.website) ? contact.website : '',
|
||||||
city: (contact.city) ? contact.city : '',
|
address: (contact.address) ? contact.address : '',
|
||||||
zip_code: (contact.zip_code) ? contact.zip_code : '',
|
city: (contact.city) ? contact.city : '',
|
||||||
state: (contact.state) ? contact.state : '',
|
zip_code: (contact.zip_code) ? contact.zip_code : '',
|
||||||
country: (contact.country) ? contact.country : '',
|
state: (contact.state) ? contact.state : '',
|
||||||
location: (contact.location) ? contact.location : '',
|
country: (contact.country) ? contact.country : '',
|
||||||
reference: (contact.reference) ? contact.reference : ''
|
location: (contact.location) ? contact.location : '',
|
||||||
});
|
reference: (contact.reference) ? contact.reference : ''
|
||||||
|
});
|
||||||
|
}
|
||||||
}, this);
|
}, this);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user