summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2024-01-03 11:18:17 +0100
committerGitHub <noreply@github.com>2024-01-03 11:18:17 +0100
commit9d4b431f481bc572cf52a26577cc7ee9cb007428 (patch)
tree6f80d5936f93189161f07377077a71f311b6a6f2
parent3f6471d9bb9b6f2e146372e707814a0618284ad1 (diff)
parent67e74f90144fab762042df0a2f2ee112782093f1 (diff)
Merge pull request #3767 from nextcloud/backport/3760/stable5.5
[stable5.5] Remove empty content when at least one related resrouce exists.
-rw-r--r--src/components/ContactDetails.vue16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue
index f05b8e29..b9c1a6f0 100644
--- a/src/components/ContactDetails.vue
+++ b/src/components/ContactDetails.vue
@@ -318,7 +318,7 @@
:header="t('contacts', 'Media shares with you')"
:item-id="contact.uid"
:primary="true"
- @has-resources="value => hasRelatedResources = value"
+ @has-resources="value => hasFilesResources = value"
@has-error="value => filesPanelHasError = value" />
<NcRelatedResourcesPanel v-if="!talkPanelHasError"
provider-id="account"
@@ -328,7 +328,7 @@
:header="t('contacts', 'Talk conversations with you')"
:item-id="contact.uid"
:primary="true"
- @has-resources="value => hasRelatedResources = value"
+ @has-resources="value => hasTalkResources = value"
@has-error="value => talkPanelHasError = value" />
<NcRelatedResourcesPanel v-if="!calendarPanelHasError"
provider-id="account"
@@ -338,7 +338,7 @@
:header="t('contacts', 'Calendar events with you')"
:item-id="contact.uid"
:primary="true"
- @has-resources="value => hasRelatedResources = value"
+ @has-resources="value => hasCalendarResources = value"
@has-error="value => calendarPanelHasError = value" />
<NcRelatedResourcesPanel v-if="!deckPanelHasError"
provider-id="account"
@@ -348,7 +348,7 @@
:header="t('contacts', 'Deck cards with you')"
:item-id="contact.uid"
:primary="true"
- @has-resources="value => hasRelatedResources = value"
+ @has-resources="value => hasDeckResources = value"
@has-error="value => deckPanelHasError = value" />
<NcEmptyContent v-if="!hasRelatedResources && !loadingData"
:name="t('contacts', 'No shared items with this contact')">
@@ -504,7 +504,10 @@ export default {
showMenuPopover: false,
profileEnabled,
isTalkEnabled,
- hasRelatedResources: false,
+ hasFilesResources: false,
+ hasTalkResources: false,
+ hasCalendarResources: false,
+ hasDeckResources: false,
deckPanelHasError: false,
filesPanelHasError: false,
talkPanelHasError: false,
@@ -514,6 +517,9 @@ export default {
},
computed: {
+ hasRelatedResources() {
+ return this.hasFilesResources || this.hasTalkResources || this.hasCalendarResources || this.hasDeckResources
+ },
/**
* The address book is read-only (e.g. shared with me).
*