Merge pull request #2782 from brkcvn/master

Disabled contacts show in contact area
This commit is contained in:
Burak Civan 2022-11-29 14:53:05 +03:00 committed by GitHub
commit 62ed0a7344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,6 +310,7 @@ export default {
let contacts = response.data.data; let contacts = response.data.data;
contacts.forEach(function (contact, index) { contacts.forEach(function (contact, index) {
if (contact.enabled) {
this.contact_list.push({ this.contact_list.push({
index: index, index: index,
key: contact.id, key: contact.id,
@ -330,6 +331,7 @@ export default {
location: (contact.location) ? contact.location : '', location: (contact.location) ? contact.location : '',
reference: (contact.reference) ? contact.reference : '' reference: (contact.reference) ? contact.reference : ''
}); });
}
}, this); }, this);
}) })
.catch(error => { .catch(error => {