Skip to content

Commit

Permalink
fixup! feat: add recipient info on the right side of the composer
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Sep 10, 2024
1 parent 7a1d576 commit 515402f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/nextcloud-contacts/RecipientDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default {
data() {
return {
loadingData: true,
loadingData: false,
loadingUpdate: false,
// if true, the local contact have been fixed and requires a push
fixed: false,
Expand All @@ -132,6 +132,7 @@ export default {
showMenuPopover: false,
profileEnabled,
localContact: undefined,
addressbooks: [],
}
},
Expand Down Expand Up @@ -183,7 +184,6 @@ export default {
}, {})
},
/**
* Fake model to use the propertySelect component
*
Expand Down Expand Up @@ -248,6 +248,7 @@ export default {
contact(contact) {
this.updateLocalContact(contact)
},
immediate: true,
},
methods: {
updateGroups(value) {
Expand Down Expand Up @@ -281,13 +282,12 @@ export default {
*/
async updateLocalContact(contact) {
// create empty contact and copy inner data
// this.fixed = validate(localContact)
const localContact = Object.assign(
Object.create(Object.getPrototypeOf(contact)),
contact,
)
// this.fixed = validate(localContact)
this.localContact = localContact
this.newGroupsValue = [...this.localContact.groups]
},
Expand Down
4 changes: 2 additions & 2 deletions src/store/getters.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ export const getters = {
getClonedWriteableCalendars: (state) => state.calendars.filter(calendar => {
return calendar.isWriteable()
}).map(calendar => {
getAddressBooks: (state) => state.addressBooks,
getClonedCalendars: (state) => state.calendars.map(calendar => {
// Hack: We need to clone all calendars because some methods (e.g. calendarQuery) are
// unnecessarily mutating the object and causing vue warnings (if used outside of
// mutations).
Expand Down Expand Up @@ -161,4 +159,6 @@ export const getters = {
isFollowUpFeatureAvailable: (state) => state.followUpFeatureAvailable,
getInternalAddresses: (state) => state.internalAddress?.filter(internalAddress => internalAddress !== undefined),
hasCurrentUserPrincipalAndCollections: (state) => state.hasCurrentUserPrincipalAndCollections,
showSettingsForAccount: (state) => (accountId) => state.showAccountSettings === accountId,
getAddressBooks: (state) => state.addressBooks,
}

0 comments on commit 515402f

Please sign in to comment.