From 7d8347250114146c70ba8ff0f7b9877c86b2a505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 20 Apr 2020 18:44:24 +0200 Subject: [PATCH] Hide comments tab if comments app is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/card/CardSidebar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 7335d32ec..ffa3d5824 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -216,7 +216,7 @@ export default { descriptionSaveTimeout: null, descriptionSaving: false, hasActivity: capabilities && capabilities.activity, - hasComments: window.OCP && window.OCP.Comments, + hasComments: !!OC.appswebroots['comments'] } }, computed: {