summaryrefslogtreecommitdiffstats
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Contacts.vue15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue
index a769f209..67a7fa39 100644
--- a/src/views/Contacts.vue
+++ b/src/views/Contacts.vue
@@ -282,13 +282,14 @@ export default {
*/
fetchContacts() {
// wait for all addressbooks to have fetch their contacts
- Promise.all(this.addressbooks.map(addressbook => this.$store.dispatch('getContactsFromAddressBook', { addressbook })))
- .then(results => {
- this.loading = false
- this.selectFirstContactIfNone()
- })
- // no need for a catch, the action does not throw
- // and the error is handled there
+ Promise.all(this.addressbooks.map(addressbook => {
+ if (addressbook.enabled) {
+ return this.$store.dispatch('getContactsFromAddressBook', { addressbook })
+ }
+ })).then(results => {
+ this.loading = false
+ this.selectFirstContactIfNone()
+ })
},
/**