Skip to content

Commit

Permalink
fixup! Add shared items and events for each contact
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Oct 24, 2023
1 parent e0f464a commit 47b09cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/ContactDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@
</template>
</NcButton>
</div>
<NcRelatedResourcesPanel provider-id="account"
<NcRelatedResourcesPanel v-if="nextcloudVersion"
provider-id="account"
:item-id="contact.uid" />
<!-- contact details -->
<section class="contact-details">
Expand Down Expand Up @@ -680,6 +681,10 @@ export default {
isInSystemAddressBook() {
return this.contact.addressbook.id === 'z-server-generated--system'
},
nextcloudVersion() {
// TODO: remove it when NC 25 is not supported anymore
return parseInt(OC.config.version.split('.')[0]) >= 26
},
},

watch: {
Expand Down

0 comments on commit 47b09cf

Please sign in to comment.