diff --git a/src/components/board/BoardSidebar.vue b/src/components/board/BoardSidebar.vue index ba58d0295..85f29c90f 100644 --- a/src/components/board/BoardSidebar.vue +++ b/src/components/board/BoardSidebar.vue @@ -47,7 +47,8 @@ - @@ -64,6 +65,8 @@ import DeletedTabSidebar from './DeletedTabSidebar' import TimelineTabSidebar from './TimelineTabSidebar' import { AppSidebar, AppSidebarTab } from '@nextcloud/vue' +const capabilities = window.OC.getCapabilities() + export default { name: 'BoardSidebar', components: { @@ -80,6 +83,11 @@ export default { required: true, }, }, + data() { + return { + hasActivity: capabilities && capabilities.activity, + } + }, computed: { ...mapState({ board: state => state.currentBoard, diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 6a8e2b0fd..775e8138a 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -127,14 +127,16 @@ - - @@ -153,6 +155,8 @@ import CardSidebarTabAttachments from './CardSidebarTabAttachments' import CardSidebarTabComments from './CardSidebarTabComments' import CardSidebarTabActivity from './CardSidebarTabActivity' +const capabilities = window.OC.getCapabilities() + export default { name: 'CardSidebar', components: { @@ -194,6 +198,8 @@ export default { }, lastModifiedRelative: null, lastCreatedRemative: null, + hasActivity: capabilities && capabilities.activity, + hasComments: window.OCP && window.OCP.Comments, } }, computed: {