Skip to content

Commit fb79a4e

Browse files
Merge pull request #4442 from nextcloud/fix/noid-do-not-load-disabled-addressbooks
fix: do not load disabled address books
2 parents 38f9a92 + 1c0ec32 commit fb79a4e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/AppNavigation/Settings/SettingsAddressbook.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{{ addressbook.dav.description }}
1717
</div>
1818
<!-- counters -->
19-
<div class="addressbook__count-wrapper">
19+
<div v-if="addressbook.enabled" class="addressbook__count-wrapper">
2020
<span class="addressbook__count">{{ n('contacts', '%n contact', '%n contacts', contactsCount) }}</span>
2121
<span class="addressbook__count">- {{ n('contacts', '%n group', '%n groups', groupsCount) }}</span>
2222
</div>

src/views/Contacts.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ export default {
347347
// don't filter disabled at this point, because sum of contacts per address book is shown
348348
Promise.all(this.addressbooks
349349
.map(addressbook => {
350+
if (!addressbook.enabled) {
351+
return Promise.resolve()
352+
}
350353
return this.$store.dispatch('getContactsFromAddressBook', { addressbook })
351354
}),
352355
).then(() => {

0 commit comments

Comments
 (0)