Skip to content

Commit 7bbe969

Browse files
committed
fixup! fix: avoid fetching the user's addressbooks per component instance
1 parent 5180cc0 commit 7bbe969

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/store/addressbooks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ const actions = {
252252
return context.getters.getAddressbooks
253253
}
254254

255-
context.state.addressbooksFetched = true
256-
257255
const addressbooks = await client.addressBookHomes[0]
258256
.findAllAddressBooks()
259257
.then((addressbooks) => {
@@ -269,6 +267,8 @@ const actions = {
269267

270268
context.commit('resortAddressbooks')
271269

270+
context.state.addressbooksFetched = true
271+
272272
return addressbooks
273273
},
274274

src/views/ReadOnlyContactDetails.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ import ContactDetailsProperty from '../components/ContactDetails/ContactDetailsP
5858
import IsMobileMixin from '../mixins/IsMobileMixin.ts'
5959
import Contact from '../models/contact.js'
6060
import rfcProps from '../models/rfcProps.js'
61-
import client from '../services/cdav.js'
6261
import validate from '../services/validate.js'
63-
import usePrincipalsStore from '../store/principals.js'
6462
import useReadOnlyContactDetailsStore from '../store/readOnlyContactDetails.ts'
6563
6664
const { profileEnabled } = loadState('user_status', 'profileEnabled', false)

0 commit comments

Comments
 (0)