Skip to content

Commit

Permalink
Add related resources panel
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Aug 24, 2022
1 parent e54a3ae commit 0c6fa30
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/RightSidebar/SharedItems/SharedItemsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@
:name="conversation.displayName"
:is-active="active" />
</template>
<NcEmptyContent v-else-if="!hasSharedItems">
<NcRelatedResourcesPanel provider-id="talk"
:item-id="conversation.id"
@has-resources="value => hasRelatedResources = value" />
<NcEmptyContent v-if="!hasRelatedResources && !hasSharedItems">
<template #icon>
<FolderMultipleImage :size="20" />
</template>
Expand All @@ -68,6 +71,7 @@ import { loadState } from '@nextcloud/initial-state'
import SharedItems from './SharedItems.vue'
import { SHARED_ITEM } from '../../../constants.js'
import NcAppNavigationCaption from '@nextcloud/vue/dist/Components/NcAppNavigationCaption.js'
import NcRelatedResourcesPanel from '@nextcloud/vue/dist/Components/NcRelatedResourcesPanel.js'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
import SharedItemsBrowser from './SharedItemsBrowser/SharedItemsBrowser.vue'
import DotsHorizontal from 'vue-material-design-icons/DotsHorizontal.vue'
Expand All @@ -83,6 +87,7 @@ export default {
SharedItems,
CollectionList,
NcAppNavigationCaption,
NcRelatedResourcesPanel,
NcButton,
NcEmptyContent,
SharedItemsBrowser,
Expand All @@ -105,6 +110,7 @@ export default {
showSharedItemsBrowser: false,
browserActiveTab: '',
projectsEnabled: loadState('core', 'projects_enabled', false),
hasRelatedResources: false,
}
},
Expand Down

0 comments on commit 0c6fa30

Please sign in to comment.